<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - [Vega10] GPU lockup on boot: VMC page fault"
href="https://bugs.freedesktop.org/show_bug.cgi?id=105251#c70">Comment # 70</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - [Vega10] GPU lockup on boot: VMC page fault"
href="https://bugs.freedesktop.org/show_bug.cgi?id=105251">bug 105251</a>
from <span class="vcard"><a class="email" href="mailto:pierre-eric.pelloux-prayer@amd.com" title="Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>"> <span class="fn">Pierre-Eric Pelloux-Prayer</span></a>
</span></b>
<pre>(In reply to zzyxpaw from <a href="show_bug.cgi?id=105251#c52">comment #52</a>)
<span class="quote">> Created <span class=""><a href="attachment.cgi?id=141522" name="attach_141522" title="Logs + trace with patched mesa, plus example code which consistently triggers crash.">attachment 141522</a> <a href="attachment.cgi?id=141522&action=edit" title="Logs + trace with patched mesa, plus example code which consistently triggers crash.">[details]</a></span>
> Logs + trace with patched mesa, plus example code which consistently
> triggers crash.
> </span >
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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>