intel/fs/xe2+: Scale BRW_MAX_MSG_LENGTH by native register size.
authorFrancisco Jerez <currojerez@riseup.net>
Wed, 3 Aug 2022 23:51:43 +0000 (16:51 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Thu, 21 Sep 2023 00:19:36 +0000 (17:19 -0700)
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25020>

src/intel/compiler/brw_fs_generator.cpp

index 32324e8..0c1d1fc 100644 (file)
@@ -1758,7 +1758,7 @@ fs_generator::generate_code(const cfg_t *cfg, int dispatch_width,
       assert(inst->force_writemask_all || inst->exec_size >= 4);
       assert(inst->force_writemask_all || inst->group % inst->exec_size == 0);
       assert(inst->base_mrf + inst->mlen <= BRW_MAX_MRF(devinfo->ver));
-      assert(inst->mlen <= BRW_MAX_MSG_LENGTH);
+      assert(inst->mlen <= BRW_MAX_MSG_LENGTH * reg_unit(devinfo));
 
       switch (inst->opcode) {
       case BRW_OPCODE_SYNC: