glsl: Only geometry shader outputs can be associated with non-zero streams.
This should be ensured by the parser, so assert on that. Reviewed-by: Chris Forbes <chrisf@ijw.co.nz> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
@@ -1347,6 +1347,11 @@ assign_varying_locations(struct gl_context *ctx,
|
|||||||
(output_var->data.mode != ir_var_shader_out))
|
(output_var->data.mode != ir_var_shader_out))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
/* Only geometry shaders can use non-zero streams */
|
||||||
|
assert(output_var->data.stream == 0 ||
|
||||||
|
(output_var->data.stream < MAX_VERTEX_STREAMS &&
|
||||||
|
producer->Stage == MESA_SHADER_GEOMETRY));
|
||||||
|
|
||||||
tfeedback_candidate_generator g(mem_ctx, tfeedback_candidates);
|
tfeedback_candidate_generator g(mem_ctx, tfeedback_candidates);
|
||||||
g.process(output_var);
|
g.process(output_var);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user