dzn: Add a dzn_desc_type_has_sampler() helper
authorBoris Brezillon <boris.brezillon@collabora.com>
Wed, 8 Jun 2022 13:57:18 +0000 (06:57 -0700)
committerMarge Bot <emma+marge@anholt.net>
Tue, 14 Jun 2022 22:44:42 +0000 (22:44 +0000)
commit1554ece8bd6617a53d1e80e024ebbfef716e153d
tree84eeb0b3ff622ca5363b0100edcdac734f1a4ab8
parentfb52be93762b34d49c547058478c36a449a28383
dzn: Add a dzn_desc_type_has_sampler() helper

Add a dzn_desc_type_has_sampler() helper instead of duplicating
the SAMPLER || COMBINED_IMAGE_SAMPLER test everywhere.

Suggested-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16926>
src/microsoft/vulkan/dzn_descriptor_set.c