anv: Refactor setting descriptors with immutable sampler
authorJason Ekstrand <jason@jlekstrand.net>
Wed, 22 Apr 2020 15:47:00 +0000 (10:47 -0500)
committerMarge Bot <eric+marge@anholt.net>
Mon, 4 May 2020 14:06:27 +0000 (14:06 +0000)
commit7628585dd709f3ffb18c7ca134fff1f375ad7b6a
treed8a98e9568dd4fb2122fe7b61db4b39752a62aba
parent73fb7cdbe1c8ce476f21cb6d39944a96151ec4b5
anv: Refactor setting descriptors with immutable sampler

Don't call anv_sampler_from_handle if the handle may be invalid.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4690>
src/intel/vulkan/anv_descriptor_set.c