From 4e611910652a92ea1fe23344920b19fd3c481e9c Mon Sep 17 00:00:00 2001 From: Rohan Garg Date: Fri, 3 Feb 2023 11:59:46 +0100 Subject: [PATCH] anv: reuse the VK_IMAGE_ASPECT_PLANES_BITS_ANV macro Signed-off-by: Rohan Garg Reviewed-by: Faith Ekstrand Part-of: --- src/intel/vulkan/anv_private.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h index f22cd789d47..df11a17295f 100644 --- a/src/intel/vulkan/anv_private.h +++ b/src/intel/vulkan/anv_private.h @@ -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;