summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2016-07-27 17:26:59 -0700
committerEric Anholt <[email protected]>2016-08-03 10:25:08 -0700
commit9128acfb5781c43abd3ffe3ef74ee1d32138f6bc (patch)
treeff5020804fbb030f17cba1045acaac862567200a /src/gallium/drivers
parent36b9eb82c1077af4e30182e13e77e6890ad30105 (diff)
nir: Allow opt_peephole_select to work on empty blocks.
nir_opt_peephole_select has the job of removing IF statements with no side effects. However, if the IF statement's successor didn't have any instructions in it, we were skipping it, which occurred in mupen64 on vc4 with glsl_to_nir enabled: instructions in affected programs: 6134 -> 4120 (-32.83%) total uniforms in shared programs: 38268 -> 38219 (-0.13%) No changes on Haswell shader-db. Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
0 files changed, 0 insertions, 0 deletions