[Mesa-dev] [Bug 101666] bitfieldExtract is marked as a built-in function on OpenGL ES 3.0, but was added in OpenGL ES 3.1
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Mon Jul 3 20:50:54 UTC 2017
https://bugs.freedesktop.org/show_bug.cgi?id=101666
--- Comment #6 from Ilia Mirkin <imirkin at alum.mit.edu> ---
Just to illustrate my point further (and apologies for not properly
compensating for bz's unfortunate email-to-bug integration):
$ cat foo.shader_test
[require]
GL ES >= 3.0
GLSL ES >= 3.00
[vertex shader]
#version 300 es
uint bitfieldExtract(uint val, int off, int size) {
uint mask = uint((1 << size) - 1);
return uint(val >> off) & mask;
}
uint bitfieldReverse(uint bits) {
return bits;
}
float interpolateAtCentroid(float foo) {
return foo;
}
void main() {
gl_Position = vec4(bitfieldExtract(1u, 2, 3));
}
[fragment shader]
#version 300 es
out vec4 color;
void main() { color = vec4(0,1,0,1); }
[test]
link success
$ bin/shader_runner_gles3 foo.shader_test -auto
Failed to compile VS: 0:3(6): error: A shader cannot redefine or overload
built-in function `bitfieldExtract' in GLSL ES 3.00
0:8(6): error: A shader cannot redefine or overload built-in function
`bitfieldReverse' in GLSL ES 3.00
0:12(7): error: A shader cannot redefine or overload built-in function
`interpolateAtCentroid' in GLSL ES 3.00
0:17(21): error: no matching function for call to `bitfieldExtract(uint, int,
int)'; candidates are:
0:17(16): error: cannot construct `vec4' from a non-numeric data type
PIGLIT: {"result": "fail" }
--
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/mesa-dev/attachments/20170703/a23cd09c/attachment.html>
More information about the mesa-dev
mailing list