i965/fs: Fix constant combining for instructions that cannot accept source mods.
authorFrancisco Jerez <currojerez@riseup.net>
Sat, 28 May 2016 06:29:10 +0000 (23:29 -0700)
committerFrancisco Jerez <currojerez@riseup.net>
Tue, 31 May 2016 22:57:41 +0000 (15:57 -0700)
commit06d8765bc09ecd8ff73fff424c8cfec645cb0ded
tree2f085e969bdadcfcd8bfafcbb868670b96c89d24
parent303ec22ed6124f7860de3856599ab4f02808b84b
i965/fs: Fix constant combining for instructions that cannot accept source mods.

This is the case for SNB math instructions so we need to be careful
and insert the literal value of the immediate into the table (rather
than its absolute value) if the instruction is unable to invert the
sign of the constant on the fly.

Cc: "12.0" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/mesa/drivers/dri/i965/brw_fs_combine_constants.cpp