summaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2016-11-02 01:22:07 +0000
committerEmil Velikov <[email protected]>2016-11-09 23:41:48 +0000
commitfa6c02787e1c4d650b7aaa528a7c4e5e129e2906 (patch)
tree94c9d60b263d462c4533d60c034b00403f96e928 /src/amd/vulkan
parenta65b6e12f357c9a3022f9d3954002254c7f3ab6e (diff)
nir: add conditional discard optimisation (v4)
This is ported from GLSL and converts if (cond) discard; into discard_if(cond); This removes a block, but also is needed by radv to workaround a bug in the LLVM backend. v2: handle if (a) discard_if(b) (nha) cleanup and drop pointless loop (Matt) make sure there are no dependent phis (Eric) v3: make sure only one instruction in the then block. v4: remove sneaky tabs, add cursor init (Eric) Reviewed-by: Eric Anholt <[email protected]> Cc: "13.0" <[email protected]> Signed-off-by: Dave Airlie <[email protected]> (cherry picked from commit b16dff2d88302e5113598a818d2f92f8af02cd79)
Diffstat (limited to 'src/amd/vulkan')
0 files changed, 0 insertions, 0 deletions