glsl linker: remove interface block instance names
Convert interface blocks with instance names into flat interface blocks without an instance name. Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
@@ -1733,6 +1733,12 @@ link_shaders(struct gl_context *ctx, struct gl_shader_program *prog)
|
||||
prog->LinkStatus = true;
|
||||
}
|
||||
|
||||
|
||||
for (unsigned int i = 0; i < MESA_SHADER_TYPES; i++) {
|
||||
if (prog->_LinkedShaders[i] != NULL)
|
||||
lower_named_interface_blocks(mem_ctx, prog->_LinkedShaders[i]);
|
||||
}
|
||||
|
||||
/* Implement the GLSL 1.30+ rule for discard vs infinite loops Do
|
||||
* it before optimization because we want most of the checks to get
|
||||
* dropped thanks to constant propagation.
|
||||
|
||||
Reference in New Issue
Block a user