i965/fs: fix indirect load DF uniforms on BSW/BXT
authorSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Mon, 13 Feb 2017 12:24:18 +0000 (13:24 +0100)
committerSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Wed, 1 Mar 2017 05:50:35 +0000 (06:50 +0100)
commit56266df7ed9dbdf63acfd58944442893b4cd0c0b
tree03e82abc088030de1bdee39d242bc0fece1dd47f
parenta497ab6838ae5a9898abfed82f7bc8295b490911
i965/fs: fix indirect load DF uniforms on BSW/BXT

The lowered BSW/BXT indirect move instructions had incorrect
source types, which luckily wasn't causing incorrect assembly to be
generated due to the bug fixed in the next patch, but would have
confused the remaining back-end IR infrastructure due to the mismatch
between the IR source types and the emitted machine code.

v2:
- Improve commit log (Curro)
- Fix read_size (Curro)
- Fix DF uniform array detection in assign_constant_locations() when
  it is acceded with 32-bit MOV_INDIRECTs in BSW/BXT.

v3:
- Move changes in assign_constant_locations() to other patch.

Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Cc: "17.0" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/mesa/drivers/dri/i965/brw_fs_nir.cpp