From: Francisco Jerez Date: Wed, 6 Feb 2019 05:54:54 +0000 (-0800) Subject: intel/eu/validate/gen12: Fix validation of SYNC instruction. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a81f9b5e3e74f102e3178122a581f6fe23d42fec;p=mesa.git 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 --- 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)