mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-26 17:26:14 +00:00
lib: Clean the batch buffer store after reset
Otherwise the stale data in the buffer Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com> Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
This commit is contained in:
parent
509850bf48
commit
4570e1b3de
@ -50,6 +50,8 @@ intel_batchbuffer_reset(struct intel_batchbuffer *batch)
|
|||||||
batch->bo = drm_intel_bo_alloc(batch->bufmgr, "batchbuffer",
|
batch->bo = drm_intel_bo_alloc(batch->bufmgr, "batchbuffer",
|
||||||
BATCH_SZ, 4096);
|
BATCH_SZ, 4096);
|
||||||
|
|
||||||
|
memset(batch->buffer, 0, sizeof(batch->buffer));
|
||||||
|
|
||||||
batch->ptr = batch->buffer;
|
batch->ptr = batch->buffer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user