i965: Avoid validation error when src1 is not present

There can be no violation of the restriction that source offsets are
aligned if there is only one source offset.
This commit is contained in:
Matt Turner
2017-09-01 15:21:48 -07:00
parent cacc229ba0
commit 5e76cf153c

View File

@@ -941,7 +941,7 @@ region_alignment_rules(const struct gen_device_info *devinfo,
} \
} \
\
ERROR_IF(offset_0 != offset_1, \
ERROR_IF(num_sources == 2 && offset_0 != offset_1, \
"The offset from the two source registers " \
"must be the same")