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:
@@ -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
|
||||
|
Reference in New Issue
Block a user