intel/fs: Respect CHV/BXT regioning restrictions in copy propagation pass.
authorFrancisco Jerez <currojerez@riseup.net>
Fri, 7 Dec 2018 22:26:23 +0000 (14:26 -0800)
committerFrancisco Jerez <currojerez@riseup.net>
Wed, 9 Jan 2019 20:03:08 +0000 (12:03 -0800)
commitc301f447ea8449804208e414f189c0571e4339a8
tree1bd867cd56e6a92e8200f0c10d38843da9feaa61
parent464e79144f8090eb42b8994a983470628c248be0
intel/fs: Respect CHV/BXT regioning restrictions in copy propagation pass.

Currently the visitor attempts to enforce the regioning restrictions
that apply to double-precision instructions on CHV/BXT at NIR-to-i965
translation time.  It is possible though for the copy propagation pass
to violate this restriction if a strided move is propagated into one
of the affected instructions.  I've only reproduced this issue on a
future platform but it could affect CHV/BXT too under the right
conditions.

Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/intel/compiler/brw_fs_copy_propagation.cpp
src/intel/compiler/brw_ir_fs.h