From ada898bb1c86a24b66d0c8ea0aafed6de02dc4bc Mon Sep 17 00:00:00 2001 From: Caio Oliveira Date: Wed, 20 Nov 2024 08:12:52 -0800 Subject: [PATCH] intel/brw: Disallow cmod in some cases of ARF scalar as destination Reviewed-by: Lionel Landwerlin Part-of: --- src/intel/compiler/brw_fs.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/intel/compiler/brw_fs.cpp b/src/intel/compiler/brw_fs.cpp index 6b5f5d4d837..df33b0529d7 100644 --- a/src/intel/compiler/brw_fs.cpp +++ b/src/intel/compiler/brw_fs.cpp @@ -393,6 +393,9 @@ fs_inst::can_do_cmod() const return false; } + if (dst.file == ARF && dst.nr == BRW_ARF_SCALAR && src[0].file == IMM) + return false; + return true; }