radv: move nir_opt_conditional_discard out of optimization loop
authorDaniel Schürmann <daniel@schuermann.dev>
Sat, 20 Jul 2019 17:21:14 +0000 (19:21 +0200)
committerDaniel Schürmann <daniel@schuermann.dev>
Mon, 22 Jul 2019 06:12:18 +0000 (08:12 +0200)
commit64b7386ee8ebc16e5980d6952148663b46a5298a
tree8d3b98378a1302eeff2da28b139ac6fec4dd53f0
parentdacaf7ec06f2b9f4c57e0aff842b8337eb78e8c5
radv: move nir_opt_conditional_discard out of optimization loop

This late optimization pass is only affected by nir_opt_if() and handles all cases
in a single pass. It's enough to call it once after the optimization loop.
No changes on vkpipeline-db.

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_shader.c