diff options
author | Paul Berry <[email protected]> | 2013-10-15 14:56:28 -0700 |
---|---|---|
committer | Paul Berry <[email protected]> | 2013-10-24 22:01:30 -0700 |
commit | e8f6f244bb1963c4af81f431865355beef1b9cbb (patch) | |
tree | 8dda5ca93a5e58a6a7a33772ad920890925078fe /src/gallium/drivers/radeonsi/radeonsi_shader.c | |
parent | 719bf3016550a279cf0d399b946d0d0b77329927 (diff) |
glsl: When disabling gl_PerVertex variables, check that mode matches.
In commit 1b4a737 (glsl: Support redeclaration of VS and GS
gl_PerVertex output), I added code to ensure that when an unnamed
gl_PerVertex interface block is redeclared, any ir_variables that
weren't included in the redeclaration are removed from the IR (and the
symbol table). This ensures that only those variables that were
explicitly redeclared may be used.
However, when I wrote this code, I neglected to match the variable
mode when finding variables to remove. This meant that redeclaring a
built-in output block might cause the built-in input gl_in to be
accidentally removed.
Fixes piglit test gs-redeclares-pervertex-out-only.
Reviewed-by: Ian Romanick <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/radeonsi_shader.c')
0 files changed, 0 insertions, 0 deletions