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 <lionel.g.landwerlin@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29663>
This commit is contained in:
Lionel Landwerlin
2024-06-07 18:50:45 +03:00
committed by Marge Bot
parent 5227b2db73
commit 6fe6b9c8fa
+2 -2
View File
@@ -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;
}