anv/descriptor_set: Only write texture swizzles if we have an image view
authorJason Ekstrand <jason@jlekstrand.net>
Tue, 25 Jun 2019 19:26:56 +0000 (14:26 -0500)
committerJason Ekstrand <jason@jlekstrand.net>
Tue, 25 Jun 2019 19:43:25 +0000 (19:43 +0000)
commit0a364a4a74e774030cde542ba8be90008b3f1211
tree17df44d5da6dd990ecdd2a3070123a55a4028666
parent74786b3aa3e30d7920121e03914d5802e46d6c6c
anv/descriptor_set: Only write texture swizzles if we have an image view

When immutable samplers are set we call write_image_view with a NULL
image view.  This causes issues on IVB where we have to fake texture
swizzling.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=110999
Fixes: d2aa65eb18 "anv: Emulate texture swizzle in the shader when..."
src/intel/vulkan/anv_descriptor_set.c