From 49be175a4bc0b34fdae0ef88f7fc4f73efafa4da Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Mon, 15 Mar 2021 17:40:56 +0200 Subject: [PATCH] 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 BSpec: 47652 Fixes: 369eab9420cfc8 ("intel/fs: Emit code for Gen12-HP indirect compute data") Reviewed-by: Francisco Jerez Part-of: --- 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);