From ae29ffb63730b94f9ab0d6e67f79e71e5ec3f4ce Mon Sep 17 00:00:00 2001 From: Francisco Jerez Date: Tue, 10 Jan 2023 21:10:24 -0800 Subject: [PATCH] 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 Part-of: --- src/intel/compiler/brw_eu_validate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/compiler/brw_eu_validate.c b/src/intel/compiler/brw_eu_validate.c index ac2d4d10ba0..37b9ae11151 100644 --- a/src/intel/compiler/brw_eu_validate.c +++ b/src/intel/compiler/brw_eu_validate.c @@ -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),