anv: Use write_image_view to initialize immutable samplers
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 8 Feb 2019 04:34:57 +0000 (22:34 -0600)
committerJason Ekstrand <jason@jlekstrand.net>
Fri, 19 Apr 2019 19:56:42 +0000 (19:56 +0000)
commitf16fcb9db779bd9b48a79df144358ac50428e6e8
tree8abfd899c1c445b0d9fbde6867963a85121c20cc
parente612c3b9bfd5c9bfb6ece9e2b3c88f787d742d85
anv: Use write_image_view to initialize immutable samplers

Instead of setting it manually, call the helper.  When setting
descriptor sets becomes more complicated than just setting some struct
values, this will keep immutable sampler handling correct.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
src/intel/vulkan/anv_descriptor_set.c