Module: Mesa
Branch: master
Commit: 8b7c2f180013a1ec7d6efb88d82a17a2e076a701
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=8b7c2f180013a1ec7d6efb88d82a17a2e076a701

Author: Jason Ekstrand <[email protected]>
Date:   Thu Feb 11 19:33:52 2021 -0600

intel/fs: Use INTEL_MASK for pushish constant address masking

It's easier to compare with the HW docs than a pile of hex.

Reviewed-by: Jordan Justen <[email protected]>
Reviewed-by: Caio Marcelo de Oliveira Filho <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9501>

---

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

diff --git a/src/intel/compiler/brw_fs.cpp b/src/intel/compiler/brw_fs.cpp
index c87304867be..349acec7594 100644
--- a/src/intel/compiler/brw_fs.cpp
+++ b/src/intel/compiler/brw_fs.cpp
@@ -1631,7 +1631,7 @@ fs_visitor::assign_curb_setup()
       fs_reg base_addr = ubld.vgrf(BRW_REGISTER_TYPE_UD);
       ubld.group(1, 0).AND(base_addr,
                            retype(brw_vec1_grf(0, 0), BRW_REGISTER_TYPE_UD),
-                           brw_imm_ud(0xffffffc0));
+                           brw_imm_ud(INTEL_MASK(31, 6)));
 
       fs_reg header0 = ubld.vgrf(BRW_REGISTER_TYPE_UD);
       ubld.MOV(header0, brw_imm_ud(0));

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to