[Bug 92500] [SKL] [Regression] webgl conformance/glsl/bugs/sampler-array-using-loop-index fails

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Oct 20 04:06:36 PDT 2015


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

Tapani Pälli <lemody at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kondapallykalyancontribute@
                   |                            |gmail.com

--- Comment #2 from Tapani Pälli <lemody at gmail.com> ---
I've upgraded Chrome to Chrome/46.0.2490.71 and now test fails. It uses
following shader:

---8< ---
#version 130
out vec4 webgl_FragColor;
uniform sampler2D webgl_b10f4de6e0297af8[2];
float webgl_dc8ac432e5f2d0a5(in int webgl_4fc82888d13de398){
return (float(webgl_4fc82888d13de398) - float(webgl_4fc82888d13de398));
}
void main(){
vec4 webgl_95a61de88fbe7420 = vec4(0.0, 0.0, 0.0, 0.0);
for (int webgl_e8ffc6842a7e307d = 1; (webgl_e8ffc6842a7e307d < 3);
(++webgl_e8ffc6842a7e307d))
{
if ((webgl_95a61de88fbe7420.x > 255.0))
{
(webgl_95a61de88fbe7420.x = (255.0 +
webgl_dc8ac432e5f2d0a5(webgl_e8ffc6842a7e307d)));
break;
}
(webgl_95a61de88fbe7420 +=
texture(webgl_b10f4de6e0297af8[int(clamp(float((webgl_e8ffc6842a7e307d - 1)),
0.0, float(1)))], vec2(0.5, 0.5)));
}
(webgl_FragColor = webgl_95a61de88fbe7420);
}
--- 8< ---

Mesa correctly errors out with following error:

--- 8< ---
0:16(36): error: sampler arrays indexed with non-constant expressions are 
forbidden in GLSL 1.30 and later
--- 8< ---

This looks like a bug in Chrome, maybe the glsl translation/validation layer.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/intel-3d-bugs/attachments/20151020/3297e1b1/attachment.html>


More information about the intel-3d-bugs mailing list