summaryrefslogtreecommitdiffstats
path: root/src/glsl/ast_to_hir.cpp
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2015-12-15 16:40:26 +1100
committerTimothy Arceri <[email protected]>2016-01-07 09:06:20 +1100
commitac6e2c2056469226fdeefb96bee632546f45a0fb (patch)
treece353567f0be3cb2d5f917b34fb2514772bdf0a5 /src/glsl/ast_to_hir.cpp
parent5907a02ab6fbe20b4ba58eb00bf93261129798d5 (diff)
glsl: fix overlapping of varying locations for arrays and structs
Previously we were only reserving a single location for arrays and structs. We also didn't take into account implicit locations clashing with explicit locations when assigning locations for their arrays or structs. This patch fixes both issues. V5: fix regression for patch inputs/outputs in tessellation shaders V4: just use count_attribute_slots() to get the number of slots, also calculate the correct number of slots to reserve for gs and tess stages by making use of the new get_varying_type() helper. V3: handle arrays of structs V2: also fix for arrays of arrays and structs. Acked-by: Anuj Phogat <[email protected]> Reviewed-by: Edward O'Callaghan <[email protected]>
Diffstat (limited to 'src/glsl/ast_to_hir.cpp')
0 files changed, 0 insertions, 0 deletions