ac/llvm: fix demote inside conditional branches

The big comment explains it.

v2: don't kill if subgroup ops are used

Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7586>
This commit is contained in:
Marek Olšák
2020-09-20 22:50:52 -04:00
committed by Marge Bot
parent cb20d58f45
commit aa757f4f8c
3 changed files with 47 additions and 4 deletions

View File

@@ -118,6 +118,7 @@ struct ac_llvm_context {
* False = demoted lanes
*/
LLVMValueRef postponed_kill;
bool conditional_demote_seen;
/* Since ac_nir_translate makes a local copy of ac_llvm_context, there
* are two ac_llvm_contexts. Declare a pointer here, so that the control