summaryrefslogtreecommitdiffstats
path: root/src/mapi/entry.c
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2017-01-11 15:10:48 -0800
committerKenneth Graunke <[email protected]>2017-01-13 15:00:38 -0800
commitfed4afc5bba9455e857407e10a4dce79ca8dfe2d (patch)
treeaf8ba4897ddbe00ee2769749aa81143ab006f99c /src/mapi/entry.c
parent99c019e1d41eb72c5ca9e0ae4b263acd6e6c214f (diff)
anv: Move nir_lower_wpos_center after dead variable elimination.
When multiple shader stages exist in the same SPIR-V module, we compile all entry points and their inputs/outputs, then dead code eliminate the ones not related to the specific entry point later. nir_lower_wpos_center was being run prior to eliminating those random other variables, which made it trip up, thinking it found gl_FragCoord when it actually found something else like gl_PerVertex[3]. Fixes dEQP-VK.spirv_assembly.instruction.graphics.module.same_module. Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Timothy Arceri <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/mapi/entry.c')
0 files changed, 0 insertions, 0 deletions