i965: Fix multiplication of immediates on Cherryview/Broxton.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 8 Jun 2016 23:09:02 +0000 (16:09 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 21 Jun 2016 00:48:03 +0000 (17:48 -0700)
commitcd89c834a8b3b4e5f5874c8e1f90c9b01d541181
treee56ec5d4ad824caa268a987eb6acaadf29431401
parenteb6764c4a73006eee32e19e3afc6eab100a2ce16
i965: Fix multiplication of immediates on Cherryview/Broxton.

Cherryview and Broxton don't support DW x DW multiplication.  We have
piles of code to handle this, but apparently weren't retyping in the
immediate case.

For example,
tests/spec/arb_tessellation_shader/execution/dvec3-vs-tcs-tes
makes the simulator angry about instructions such as:

   mul(8) r18<1>:D r10.0<8;8,1>:D 0x00000003:D

Just retype to W or UW.  It should be safe on all platforms.

Cc: "12.0" <mesa-stable@lists.freedesktop.org>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=95462
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_fs.cpp