anv: reuse the VK_IMAGE_ASPECT_PLANES_BITS_ANV macro

Signed-off-by: Rohan Garg <rohan.garg@intel.com>
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21283>
This commit is contained in:
Rohan Garg 2023-02-03 11:59:46 +01:00 committed by Marge Bot
parent 5bb217a07a
commit 4e61191065

View file

@ -2332,16 +2332,15 @@ anv_pipe_invalidate_bits_for_access_flags(struct anv_device *device,
return pipe_bits;
}
#define VK_IMAGE_ASPECT_ANY_COLOR_BIT_ANV ( \
VK_IMAGE_ASPECT_COLOR_BIT | \
VK_IMAGE_ASPECT_PLANE_0_BIT | \
VK_IMAGE_ASPECT_PLANE_1_BIT | \
VK_IMAGE_ASPECT_PLANE_2_BIT)
#define VK_IMAGE_ASPECT_PLANES_BITS_ANV ( \
VK_IMAGE_ASPECT_PLANE_0_BIT | \
VK_IMAGE_ASPECT_PLANE_1_BIT | \
VK_IMAGE_ASPECT_PLANE_2_BIT)
#define VK_IMAGE_ASPECT_ANY_COLOR_BIT_ANV ( \
VK_IMAGE_ASPECT_COLOR_BIT | \
VK_IMAGE_ASPECT_PLANES_BITS_ANV)
struct anv_vertex_binding {
struct anv_buffer * buffer;
VkDeviceSize offset;