From a81f9b5e3e74f102e3178122a581f6fe23d42fec Mon Sep 17 00:00:00 2001 From: Francisco Jerez Date: Tue, 5 Feb 2019 21:54:54 -0800 Subject: [PATCH] intel/eu/validate/gen12: Fix validation of SYNC instruction. src0 will typically be null for this instruction. Reviewed-by: Caio Marcelo de Oliveira Filho Reviewed-by: Kenneth Graunke --- 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 068143d0dd0..7acc9c3b57d 100644 --- a/src/intel/compiler/brw_eu_validate.c +++ b/src/intel/compiler/brw_eu_validate.c @@ -280,7 +280,7 @@ sources_not_null(const struct gen_device_info *devinfo, if (inst_is_split_send(devinfo, inst)) return (struct string){}; - if (num_sources >= 1) + if (num_sources >= 1 && brw_inst_opcode(devinfo, inst) != BRW_OPCODE_SYNC) ERROR_IF(src0_is_null(devinfo, inst), "src0 is null"); if (num_sources == 2) -- 2.30.2