diff options
author | Francisco Jerez <[email protected]> | 2019-02-05 21:54:54 -0800 |
---|---|---|
committer | Francisco Jerez <[email protected]> | 2019-10-11 12:24:16 -0700 |
commit | a81f9b5e3e74f102e3178122a581f6fe23d42fec (patch) | |
tree | f76843b966a662f7233b906a6351e0c792323288 /src/intel | |
parent | 45768e6b3c51aebf052f47dd1c2aca5f17b77ed9 (diff) |
intel/eu/validate/gen12: Fix validation of SYNC instruction.
src0 will typically be null for this instruction.
Reviewed-by: Caio Marcelo de Oliveira Filho <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/intel')
-rw-r--r-- | src/intel/compiler/brw_eu_validate.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |