aco: set loop_info::has_discard for demotes
authorRhys Perry <pendingchaos02@gmail.com>
Thu, 26 Sep 2019 09:33:43 +0000 (10:33 +0100)
committerRhys Perry <pendingchaos02@gmail.com>
Fri, 27 Sep 2019 09:57:03 +0000 (10:57 +0100)
commitb711e62e615095524a1af8dc4a6665bf1514a56c
treebe1d6ce8e05327cbe69b7c80faa8a16136cb65ff
parent237c7636ca4c429d4dbfce95b6e3281a8309eac7
aco: set loop_info::has_discard for demotes

We need the loop header phis for the outer exec masks. Needed for
dEQP-VK.glsl.demote.dynamic_loop_texture

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
src/amd/compiler/aco_insert_exec_mask.cpp
src/amd/compiler/aco_instruction_selection.cpp
src/amd/compiler/aco_ir.h