summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp
diff options
context:
space:
mode:
authorFrancisco Jerez <currojerez@riseup.net>2016-04-25 17:25:26 -0700
committerFrancisco Jerez <currojerez@riseup.net>2016-05-27 23:19:20 -0700
commit52cc80d85945f14d4556eb5df5b269338adf8299 (patch)
tree82bcb0dc8818c994b5e59618c17830a4606bd8c7 /src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp
parentc5f224145a41079ddcc77c0d7df8b4b75ed2d4fe (diff)
downloadexternal_mesa3d-52cc80d85945f14d4556eb5df5b269338adf8299.zip
external_mesa3d-52cc80d85945f14d4556eb5df5b269338adf8299.tar.gz
external_mesa3d-52cc80d85945f14d4556eb5df5b269338adf8299.tar.bz2
i965/fs: Fix CSE temporary copy for some LOAD_PAYLOAD corner cases.
If the LOAD_PAYLOAD instruction only has header sources it's possible for the number of registers written to be less than or equal to the SIMD component size, in which case it would take the single-MOV path at the bottom which would cause the channel enable masks to be applied incorrectly to the header contents and/or cause it to write past the end of the allocated temporary. If the instruction is either LOAD_PAYLOAD or doesn't write exactly one component the MOV path is going to mess up the program so just don't use it. Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp')
0 files changed, 0 insertions, 0 deletions