<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - [piglit] shaders/glsl-array-bounds-02 (+even nrs) produces TRAP , TRAP_MP - TP0: Unhandled ustatus 0x00000001"
href="https://bugs.freedesktop.org/show_bug.cgi?id=68348#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW --- - [piglit] shaders/glsl-array-bounds-02 (+even nrs) produces TRAP , TRAP_MP - TP0: Unhandled ustatus 0x00000001"
href="https://bugs.freedesktop.org/show_bug.cgi?id=68348">bug 68348</a>
from <span class="vcard"><a class="email" href="mailto:imirkin@alum.mit.edu" title="Ilia Mirkin <imirkin@alum.mit.edu>"> <span class="fn">Ilia Mirkin</span></a>
</span></b>
<pre>The big difference between the even and odd numbered
shaders/glsl-array-bounds-* seems to be how the invalid index comes about.
In the odd-numbered ones, it comes directly from shader code, e.g.:
void main() {
int idx = 20;
array[idx]
}
In the even-numbered ones, it comes from a uniform that I guess is passed in:
uniform int idx;
void main() {
array[idx]
}
(And the various tests check fragment/vertex shaders, positive/negative
offsets, and the place where the idx comes from, so 8 tests total.)
Although I'm not sure there's actually a problem here... the program is doing
something illegal. You get segfault notifications in dmesg too...</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>