intel/eu/gfx12.5+: Don't fail validation with ARF register restriction error for indirect addressing.

The "file" field doesn't exist for indirect operands, so it contains
garbage.

Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26994>
This commit is contained in:
Francisco Jerez 2023-01-10 21:10:24 -08:00 committed by Marge Bot
parent 32b3ea3c3d
commit ae29ffb637

View file

@ -1977,7 +1977,7 @@ special_requirements_for_handling_double_precision_data_types(
"source and destination are not supported except for "
"broadcast of a scalar.");
ERROR_IF((file == BRW_ARCHITECTURE_REGISTER_FILE &&
ERROR_IF((address_mode == BRW_ADDRESS_DIRECT && file == BRW_ARCHITECTURE_REGISTER_FILE &&
reg != BRW_ARF_NULL && !(reg >= BRW_ARF_ACCUMULATOR && reg < BRW_ARF_FLAG)) ||
(dst_file == BRW_ARCHITECTURE_REGISTER_FILE &&
dst_reg != BRW_ARF_NULL && dst_reg != BRW_ARF_ACCUMULATOR),