<div dir="ltr">Hi,<div><br></div><div>I am a new user of mesa.</div><div>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 : </div><div><br></div><div><div>uniform barBlock {</div><div> vec4 nv;</div><div> int ni;</div><div>} inst;</div><div><br></div><div>I got the following message : <br></div><div>"error: invalid stream specified 0 is larger than MAX_VERTEX_STREAMS - 1 (-1)."<br></div><div><br></div><div>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. </div><div><br></div><div>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.</div><div><br></div><div>I deduced those informations from the function (in ast_to_hir.cpp) :</div><div>ir_rvalue *</div><div>ast_interface_block::hir(exec_list *instructions, struct _mesa_glsl_parse_state *state)</div><div><br></div><div><br></div><div>Thanks</div>-- <br><div class="gmail_signature"><div dir="ltr"><br></div></div>
</div></div>