i965/fs: Avoid constant propagation when the type sizes don't match.
authorFrancisco Jerez <currojerez@riseup.net>
Fri, 20 May 2016 04:32:14 +0000 (21:32 -0700)
committerFrancisco Jerez <currojerez@riseup.net>
Sat, 28 May 2016 06:19:20 +0000 (23:19 -0700)
commit0bc5ad8d1997fe33dd43bb476c67163039f065ff
tree9890dfe867e6b9d3695e951f5e89edc2ff40c64d
parent52cc80d85945f14d4556eb5df5b269338adf8299
i965/fs: Avoid constant propagation when the type sizes don't match.

The case where the source type of the instruction is smaller than the
immediate type could be handled by calculating the portion of the
immediate read by the instruction (assuming that the source channels
are aligned with the destination channels of the copy) and then
representing the same value as an immediate of the source type
(assuming such an immediate type exists), but the code below doesn't
do that, so just bail for the moment.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp