OSDN Git Service

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)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 15 Mar 2017 18:54:31 +0000 (18:54 +0000)
commite1e27b0917249448a481b6681aac375505f728c3
treeaf885fd3ccb7306e4addaa0433574ab68983a0d0
parent59e6c0d8aee718cf58198d5a5b2adce3e01391a6
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>
(cherry picked from commit d8122128bc6bd291ff0abcb7f2e52d9cdc631527)
src/mesa/drivers/dri/i965/brw_fs_nir.cpp