eb0c197090
When applying barriers for image transitions, we're currently considering all possible usages of an image. But when running on a compute only queue for example, the usage of an image will never be one of those : - VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT - VK_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT - VK_IMAGE_USAGE_TRANSIENT_ATTACHMENT_BIT - VK_IMAGE_USAGE_INPUT_ATTACHMENT_BIT - VK_IMAGE_USAGE_FRAGMENT_SHADING_RATE_ATTACHMENT_BIT_KHR Removing unused usages for the compute queue allows us to reduce the scope of the VK_IMAGE_LAYOUT_GENERAL for example. This a bunch of transition operation that are completely useless when dealing with barriers on the compute queue. Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25092>