From 6fe6b9c8faad89d38cc5847936e6cd6d972bc040 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Fri, 7 Jun 2024 18:50:45 +0300 Subject: [PATCH] brw: avoid Wa_1407528679 in uniform cases When the surface handles are generated with exec_all, we can avoid emitting the workaround. Signed-off-by: Lionel Landwerlin Reviewed-by: Kenneth Graunke Part-of: --- src/intel/compiler/brw_fs_workaround.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/intel/compiler/brw_fs_workaround.cpp b/src/intel/compiler/brw_fs_workaround.cpp index 59113b6f5b5..947fd0a51a7 100644 --- a/src/intel/compiler/brw_fs_workaround.cpp +++ b/src/intel/compiler/brw_fs_workaround.cpp @@ -220,7 +220,8 @@ brw_fs_workaround_nomask_control_flow(fs_visitor &s) * safely omit the predication for. */ if (depth && inst->force_writemask_all && - is_send(inst) && !inst->predicate) { + is_send(inst) && !inst->predicate && + !inst->has_no_mask_send_params) { /* We need to load the execution mask into the flag register by * using a builder with channel group matching the whole shader * (rather than the default which is derived from the original @@ -270,4 +271,3 @@ brw_fs_workaround_nomask_control_flow(fs_visitor &s) return progress; } -