[Bug 107579] [SNB] The graphic corruption when we reuse the GS compiled and used for TFB when statebuffer contain magic trash in the unused space
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Wed Aug 15 13:37:35 UTC 2018
https://bugs.freedesktop.org/show_bug.cgi?id=107579
--- Comment #6 from asimiklit <andrey.simiklit at gmail.com> ---
Created attachment 141111
--> https://bugs.freedesktop.org/attachment.cgi?id=141111&action=edit
The apitrace which cause to the graphical corruption
The following code could help us to show state buffer before send (last 3 byte
could be missing but i think they is do not matter):
--- a/src/mesa/drivers/dri/i965/intel_batchbuffer.c
+++ b/src/mesa/drivers/dri/i965/intel_batchbuffer.c
@@ -750,6 +750,19 @@ submit_batch(struct brw_context *brw, int in_fence_fd, int
*out_fence_fd)
memcpy(bo_map, batch->state.map, batch->state_used);
}
+ fprintf(stderr, "=================================================\n");
+ if(batch->state.map)
+ {
+ uint32_t * data = (uint32_t *)batch->state.map;
+ const size_t s = batch->state_used / 4;
+ for(size_t i = 0u; i < s; ++i)
+ {
+ fprintf(stderr, "0x%08x : 0x%08x\n", (uint32_t)(i*4), data[i]);
+ }
+ }
+ fprintf(stderr, "=================================================\n");
+
+
brw_bo_unmap(batch->batch.bo);
brw_bo_unmap(batch->state.bo);
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/intel-3d-bugs/attachments/20180815/f388301e/attachment.html>
More information about the intel-3d-bugs
mailing list