gfxstream: Track vkGetDeviceImageMemoryRequirements on host

vkGetDeviceImageMemoryRequirements can be used to get memory
requirements without creating an actual image and we should apply the
same image modifications based on the create info when returning the
memory requirements.

Reviewed-by: Marcin Radomski <dextero@google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35323>
This commit is contained in:
Serdar Kocdemir 2025-05-15 08:44:03 +00:00 committed by Marge Bot
parent 4340dfb400
commit 33ba95cb0c

View file

@ -842,6 +842,11 @@ custom_decodes = {
"vkGetPhysicalDeviceSparseImageFormatProperties" : emit_global_state_wrapped_decoding,
"vkGetPhysicalDeviceSparseImageFormatProperties2" : emit_global_state_wrapped_decoding,
"vkGetPhysicalDeviceSparseImageFormatProperties2KHR" : emit_global_state_wrapped_decoding,
# Image requirements need to be adjusted for compressed textures
"vkGetDeviceImageMemoryRequirements" : emit_global_state_wrapped_decoding,
"vkGetDeviceImageMemoryRequirementsKHR" : emit_global_state_wrapped_decoding,
}
class VulkanDecoder(VulkanWrapperGenerator):