Mesa (main): intel/compiler: make CLUSTER_BROADCAST always deal with integers

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Feb 16 22:04:11 UTC 2022


Module: Mesa
Branch: main
Commit: 81f97905c3be29bbe81104ef149b4ee14c015f60
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=81f97905c3be29bbe81104ef149b4ee14c015f60

Author: Iván Briano <ivan.briano at intel.com>
Date:   Tue Feb 15 14:33:28 2022 -0800

intel/compiler: make CLUSTER_BROADCAST always deal with integers

This way we don't run afoul of regioning restrictions around floating
point types.

Cc: 22.0 <mesa-stable>
Reviewed-by: Jason Ekstrand <jason.ekstrand at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15039>

---

 src/intel/compiler/brw_fs_lower_regioning.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/intel/compiler/brw_fs_lower_regioning.cpp b/src/intel/compiler/brw_fs_lower_regioning.cpp
index 0ddd47c4b1c..e1fe9eaff7b 100644
--- a/src/intel/compiler/brw_fs_lower_regioning.cpp
+++ b/src/intel/compiler/brw_fs_lower_regioning.cpp
@@ -180,7 +180,7 @@ namespace {
               intel_device_info_is_9lp(devinfo)) && type_sz(t) > 4)
             return BRW_REGISTER_TYPE_UD;
          else
-            return t;
+            return brw_int_type(type_sz(t), false);
 
       case SHADER_OPCODE_BROADCAST:
       case SHADER_OPCODE_MOV_INDIRECT:



More information about the mesa-commit mailing list