glsl/linker: produce gl_shader_program Geom.Invocations
Grab the parsed invocation count, check for consistency during linking, and finally save the result in gl_shader_program Geom.Invocations. Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Paul Berry <stereotype441@gmail.com> Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
This commit is contained in:
@@ -1374,6 +1374,10 @@ set_shader_inout_layout(struct gl_shader *shader,
|
||||
} else {
|
||||
shader->Geom.OutputType = PRIM_UNKNOWN;
|
||||
}
|
||||
|
||||
shader->Geom.Invocations = 0;
|
||||
if (state->in_qualifier->flags.q.invocations)
|
||||
shader->Geom.Invocations = state->in_qualifier->invocations;
|
||||
break;
|
||||
|
||||
case MESA_SHADER_COMPUTE:
|
||||
|
Reference in New Issue
Block a user