intel/reg,fs: Handle immediates properly in subscript()
authorJason Ekstrand <jason@jlekstrand.net>
Mon, 26 Oct 2020 18:27:43 +0000 (13:27 -0500)
committerMarge Bot <eric+marge@anholt.net>
Fri, 22 Jan 2021 18:38:37 +0000 (18:38 +0000)
commit69a3559efd6ec036749c3f460f092b7a38c12d2a
tree3ad14abb9a80cf435012fb175522f648556c421c
parente797daba538e605b6b94cb28c922384cef9ef014
intel/reg,fs: Handle immediates properly in subscript()

Just returning the original type isn't what we want in basically any
case.  Mask and shift the immediate as needed.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7329>
src/intel/compiler/brw_fs.cpp
src/intel/compiler/brw_ir_fs.h
src/intel/compiler/brw_reg.h