i965/fs: fix source type when emitting MOV_INDIRECT to read ICP handles
authorSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Thu, 16 Feb 2017 09:47:01 +0000 (10:47 +0100)
committerSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Wed, 1 Mar 2017 05:50:35 +0000 (06:50 +0100)
commitd8122128bc6bd291ff0abcb7f2e52d9cdc631527
tree4d1d5a6457c6422afa8c5b2e99f6767813c21ba9
parent56266df7ed9dbdf63acfd58944442893b4cd0c0b
i965/fs: fix source type when emitting MOV_INDIRECT to read ICP handles

When generating the MOV INDIRECT instruction, the source type is ignored
and it is set to destination's type. However, this is going to change in a
later patch, so we need to explicitly set the proper source type.

brw_vec8_grf() creates an float type's fs_reg by default, when the
ICP handle is actually unsigned. This patch fixes these cases before
applying the aforementioned 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