Mesa (master): intel/fs: limit OW reads to 8 owords on XeHP+

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Apr 8 09:32:59 UTC 2021


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

Author: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Date:   Mon Mar 15 17:40:56 2021 +0200

intel/fs: limit OW reads to 8 owords on XeHP+

We can only use 16 OW reads/writes on SLM.

v2: Update comment (Curro)

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
BSpec: 47652
Fixes: 369eab9420cfc8 ("intel/fs: Emit code for Gen12-HP indirect compute data")
Reviewed-by: Francisco Jerez <currojerez at riseup.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10082>

---

 src/intel/compiler/brw_fs.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/intel/compiler/brw_fs.cpp b/src/intel/compiler/brw_fs.cpp
index cb1d33ecfdb..067e5ae68b5 100644
--- a/src/intel/compiler/brw_fs.cpp
+++ b/src/intel/compiler/brw_fs.cpp
@@ -1643,7 +1643,10 @@ fs_visitor::assign_curb_setup()
        * stateless messages.
        */
       for (unsigned i = 0; i < uniform_push_length;) {
-         unsigned num_regs = MIN2(uniform_push_length - i, 8);
+         /* Limit ourselves to HW limit of 8 Owords (8 * 16bytes = 128 bytes
+          * or 4 registers).
+          */
+         unsigned num_regs = MIN2(uniform_push_length - i, 4);
          assert(num_regs > 0);
          num_regs = 1 << util_logbase2(num_regs);
 



More information about the mesa-commit mailing list