i965/generator/tex: Handle an immediate sampler with an indirect texture
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 22 Dec 2016 23:26:12 +0000 (15:26 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 23 Dec 2016 15:27:13 +0000 (07:27 -0800)
commit88b5acfa09d4efa2aea1fc9cc4f8169a48c40286
tree013b3ee1e9e8995f0ffaa7d584e0cc16b864e8c0
parent9e35426731bc0bfee4eeeb828f61c026a97c841c
i965/generator/tex: Handle an immediate sampler with an indirect texture

In this case we were dying when we tried to do SHL addr sampler imm(8)
because that puts an immediate in src0 of a two source instruction. This
fixes 2704 of the new separate sampler Vulkan CTS tests on Sky Lake.

Reviewed-by: Eduardo Lima Mitev <elima@igalia.com>
Cc: "13.0" <mesa-stable@lists.freedesktop.org>
src/mesa/drivers/dri/i965/brw_fs_generator.cpp
src/mesa/drivers/dri/i965/brw_vec4_generator.cpp