public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
* [Intel gfx][i-g-t PATCH 1/4] lib: Clean the batch buffer store after reset
@ 2013-12-06  8:54 Xiang, Haihao
  2013-12-06  8:54 ` [Intel gfx][i-g-t PATCH 2/4] rendercopy/bdw: Set Instruction Buffer size Modify Enable to 1 Xiang, Haihao
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Xiang, Haihao @ 2013-12-06  8:54 UTC (permalink / raw)
  To: intel-gfx

From: "Xiang, Haihao" <haihao.xiang@intel.com>

Otherwise the stale data in the buffer

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
---
 lib/intel_batchbuffer.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/intel_batchbuffer.c b/lib/intel_batchbuffer.c
index 06a5437..9ce7424 100644
--- a/lib/intel_batchbuffer.c
+++ b/lib/intel_batchbuffer.c
@@ -50,6 +50,8 @@ intel_batchbuffer_reset(struct intel_batchbuffer *batch)
 	batch->bo = drm_intel_bo_alloc(batch->bufmgr, "batchbuffer",
 				       BATCH_SZ, 4096);
 
+	memset(batch->buffer, 0, sizeof(batch->buffer));
+
 	batch->ptr = batch->buffer;
 }
 
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2013-12-09  6:54 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-06  8:54 [Intel gfx][i-g-t PATCH 1/4] lib: Clean the batch buffer store after reset Xiang, Haihao
2013-12-06  8:54 ` [Intel gfx][i-g-t PATCH 2/4] rendercopy/bdw: Set Instruction Buffer size Modify Enable to 1 Xiang, Haihao
2013-12-06 10:15   ` Kenneth Graunke
2013-12-06 13:08     ` Damien Lespiau
2013-12-06  8:54 ` [Intel gfx][i-g-t PATCH 3/4] rendercopy/bdw: A workaround for 3D pipeline Xiang, Haihao
2013-12-06 13:30   ` Damien Lespiau
2013-12-09  4:47     ` Xiang, Haihao
2013-12-09  6:53       ` Daniel Vetter
2013-12-06  8:54 ` [Intel gfx][i-g-t PATCH 4/4] Revert "gen8 rendercpy: temporarily disable" Xiang, Haihao
2013-12-06 10:14 ` [Intel gfx][i-g-t PATCH 1/4] lib: Clean the batch buffer store after reset Kenneth Graunke
2013-12-06 13:03   ` Damien Lespiau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox