From fde5cebec53aa9a0ceaafef2ec9ba85fd897f40c Mon Sep 17 00:00:00 2001 From: Yiwei Zhang Date: Mon, 24 Feb 2025 23:55:07 -0800 Subject: [PATCH] venus: fix image format cache miss with AHB usage query should skip updating cache key instead of marking as a miss Fixes: e48645250c6 ("venus: image format properties cache") Signed-off-by: Yiwei Zhang Part-of: --- src/virtio/vulkan/vn_physical_device.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/virtio/vulkan/vn_physical_device.c b/src/virtio/vulkan/vn_physical_device.c index b1b3f3ae509..799b9093bc4 100644 --- a/src/virtio/vulkan/vn_physical_device.c +++ b/src/virtio/vulkan/vn_physical_device.c @@ -2246,6 +2246,9 @@ vn_image_get_image_format_key( _mesa_sha1_update(&sha1_ctx, &src->sType, sizeof(VkStructureType)); break; + case VK_STRUCTURE_TYPE_ANDROID_HARDWARE_BUFFER_USAGE_ANDROID: + /* no need to update cache key since handled outside the cache */ + break; default: physical_dev->image_format_cache.debug.cache_skip_count++; return false;