intel/eu/xe2+: Update validation of GRF region size to account for Xe2 reg size
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25020>
This commit is contained in:

committed by
Jordan Justen

parent
00b614a5a7
commit
6423cb9bfa
@@ -1465,7 +1465,7 @@ region_alignment_rules(const struct brw_isa_info *isa,
|
||||
unsigned hstride_elements = (num_hstride - 1) * hstride;
|
||||
unsigned offset = (vstride_elements + hstride_elements) * element_size +
|
||||
subreg;
|
||||
ERROR_IF(offset >= 64,
|
||||
ERROR_IF(offset >= 64 * reg_unit(devinfo),
|
||||
"A source cannot span more than 2 adjacent GRF registers");
|
||||
}
|
||||
|
||||
@@ -1477,7 +1477,7 @@ region_alignment_rules(const struct brw_isa_info *isa,
|
||||
unsigned element_size = brw_reg_type_to_size(dst_type);
|
||||
unsigned subreg = brw_inst_dst_da1_subreg_nr(devinfo, inst);
|
||||
unsigned offset = ((exec_size - 1) * stride * element_size) + subreg;
|
||||
ERROR_IF(offset >= 64,
|
||||
ERROR_IF(offset >= 64 * reg_unit(devinfo),
|
||||
"A destination cannot span more than 2 adjacent GRF registers");
|
||||
|
||||
if (error_msg.str)
|
||||
|
Reference in New Issue
Block a user