nir/spirv: tg4 requires a sampler
authorAlex Smith <asmith@feralinteractive.com>
Tue, 7 Nov 2017 10:52:48 +0000 (10:52 +0000)
committerAlex Smith <asmith@feralinteractive.com>
Mon, 13 Nov 2017 13:38:18 +0000 (13:38 +0000)
commit4122d008466cef47eaa3f958924618060f4e4330
treee986e63781c79b7dc6136048ca71c2ce2e5de18b
parente9eb3c4753e4f56b03d16d8d6f71d49f1e7b97db
nir/spirv: tg4 requires a sampler

Gather operations in both GLSL and SPIR-V require a sampler. Fixes
gathers returning garbage when using separate texture/samplers (on AMD,
was using an invalid sampler descriptor).

Signed-off-by: Alex Smith <asmith@feralinteractive.com>
Cc: "17.2 17.3" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/nir/nir.h
src/compiler/spirv/spirv_to_nir.c