From 00b614a5a7265cf6e9f9e11501edbeecc180ac69 Mon Sep 17 00:00:00 2001 From: Francisco Jerez Date: Fri, 22 Jul 2022 17:28:47 -0700 Subject: [PATCH] intel/fs/xe2+: Scale MAX_SAMPLER_MESSAGE_SIZE by native register size. Reviewed-by: Caio Oliveira Reviewed-by: Jordan Justen Part-of: --- src/intel/compiler/brw_lower_logical_sends.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/compiler/brw_lower_logical_sends.cpp b/src/intel/compiler/brw_lower_logical_sends.cpp index b7610a1347a..387c64f4699 100644 --- a/src/intel/compiler/brw_lower_logical_sends.cpp +++ b/src/intel/compiler/brw_lower_logical_sends.cpp @@ -1229,7 +1229,7 @@ lower_sampler_logical_send_gfx7(const fs_builder &bld, fs_inst *inst, opcode op, } /* Message length > MAX_SAMPLER_MESSAGE_SIZE disallowed by hardware. */ - assert(inst->mlen <= MAX_SAMPLER_MESSAGE_SIZE); + assert(inst->mlen <= MAX_SAMPLER_MESSAGE_SIZE * reg_unit(devinfo)); } static unsigned