mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-15 12:08:14 +02:00
intel/brw: Fix validation of accumulator register
The `stride` and `offset` attributes are meaningful for the "virtual"
register files (VGRFs, UNIFORMs and ATTRs). Accumulator is an ARF so
validation should check `hstride` (part of the <V,W,H> triple) and `subnr`
instead.
Fixes: 12d7aaf2b8 ("intel/compiler: add more validation for acc register usage")
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28059>
This commit is contained in:
parent
db8022dc4d
commit
e324fbbe68
1 changed files with 2 additions and 2 deletions
|
|
@ -191,8 +191,8 @@ fs_visitor::validate()
|
|||
*/
|
||||
if (intel_needs_workaround(devinfo, 14014617373) &&
|
||||
inst->dst.is_accumulator() &&
|
||||
inst->dst.offset == 0) {
|
||||
fsv_assert_eq(inst->dst.stride, 1);
|
||||
phys_subnr(devinfo, inst->dst.as_brw_reg()) == 0) {
|
||||
fsv_assert_eq(inst->dst.hstride, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue