[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
Thu Aug 16 10:16:17 UTC 2018
https://bugs.freedesktop.org/show_bug.cgi?id=107579
--- Comment #7 from asimiklit <andrey.simiklit at gmail.com> ---
Created attachment 141137
--> https://bugs.freedesktop.org/attachment.cgi?id=141137&action=edit
simple program and makefile
Added simple reproducer program
Note: I was a bit wrong the magic value 0xFFFFFFFF is enough for HANG only for
the graphical corruption we need the following values:
((uint32_t*)vbuffer0Ptr)[0] = 0x2003625aU;
((uint32_t*)vbuffer0Ptr)[1] = 0x02040110U;
((uint32_t*)vbuffer0Ptr)[2] = 0x2027625aU;
((uint32_t*)vbuffer0Ptr)[3] = 0x02040210U;
They are used in the following function:
>bool allocBufferWithMagicTrash(GLuint idx)
>{
> bool oval = false;
> enum { kSize = 16384 };
> glBindBuffer(GL_ARRAY_BUFFER, idx);
> glBufferData(GL_ARRAY_BUFFER, kSize, NULL, GL_STATIC_DRAW);
> void * vbuffer0Ptr = glMapBuffer(GL_ARRAY_BUFFER, GL_READ_WRITE);
> assert(vbuffer0Ptr);
> if(vbuffer0Ptr)
> {
> memset(vbuffer0Ptr, 0xFF, kSize);
> ((uint32_t*)vbuffer0Ptr)[0] = 0x2003625aU;
> ((uint32_t*)vbuffer0Ptr)[1] = 0x02040110U;
> ((uint32_t*)vbuffer0Ptr)[2] = 0x2027625aU;
> ((uint32_t*)vbuffer0Ptr)[3] = 0x02040210U;
> glUnmapBuffer(GL_ARRAY_BUFFER);
> glBindBuffer(GL_ARRAY_BUFFER, 0);
> }
> return oval;
>}
--
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/20180816/301f27af/attachment.html>
More information about the intel-3d-bugs
mailing list