[Bug 105251] [Vega10] GPU lockup on boot: VMC page fault

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Jul 4 15:19:10 UTC 2019


https://bugs.freedesktop.org/show_bug.cgi?id=105251

--- Comment #70 from Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer at amd.com> ---
(In reply to zzyxpaw from comment #52)
> Created attachment 141522 [details]
> Logs + trace with patched mesa, plus example code which consistently
> triggers crash.
> 


The example code is incorrect. Line 99: 
   glVertexAttribPointer(1, 2, GL_FLOAT, GL_FALSE, 5*sizeof(float),
&vertices[3]);
Should be:
   glVertexAttribPointer(1, 2, GL_FLOAT, GL_FALSE, 5*sizeof(float), 3 *
sizeof(float));

(cf glVertexAttribPointer documentation: "pointer is treated as a byte offset
into the buffer object's data store")

With this change the program runs correctly.

Note that even if the program is invalid it shouldn't hang the GPU. I'm working
on a fix for this.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20190704/e92eb9f7/attachment.html>


More information about the dri-devel mailing list