[Mesa-users] Uniform block in mesa glsl-compiler
Y.Audureau
yoan.audureau at gmail.com
Wed Jul 12 18:33:10 UTC 2017
Hi,
I am a new user of mesa.
I would like to use the standalone glsl-compiler but I got some issues
while compiling a glsl 300 es fragment shader with a simple uniform block
inside :
uniform barBlock {
vec4 nv;
int ni;
} inst;
I got the following message :
"error: invalid stream specified 0 is larger than MAX_VERTEX_STREAMS - 1
(-1)."
It seems that the MAX_VERTEX_STREAMS is not set and that the stream
property of my ubo layout (layout.stream) is setted to 0 because the it
doesn't have any stream expression. But in any case, my shader is a
fragment shader, not a geometry one and in version 300 es.
If I define MAX_VERTEX_STREAMS, I got others issue about the others layout
properties (buffer, offset, stride, align) but why those properties are
checked if I don't use the enhanced layout extension.
I deduced those informations from the function (in ast_to_hir.cpp) :
ir_rvalue *
ast_interface_block::hir(exec_list *instructions, struct
_mesa_glsl_parse_state *state)
Thanks
--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-users/attachments/20170712/d4a307fa/attachment.html>
More information about the mesa-users
mailing list