anv,hasvk: Set vk_image.ahardware_buffer_format
This effectively just modifies it for YCbCr images where the common code doesn't have a useable format mapping. Reviewed-by: Lina Versace <lina@kiwitree.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22038>
This commit is contained in:

committed by
Marge Bot

parent
906944b210
commit
0a86df21d0
@@ -1370,6 +1370,10 @@ anv_image_init(struct anv_device *device, struct anv_image *image,
|
||||
if (image->vk.external_handle_types &
|
||||
VK_EXTERNAL_MEMORY_HANDLE_TYPE_ANDROID_HARDWARE_BUFFER_BIT_ANDROID) {
|
||||
image->from_ahb = true;
|
||||
#ifdef ANDROID
|
||||
image->vk.ahardware_buffer_format =
|
||||
anv_ahb_format_for_vk_format(image->vk.format);
|
||||
#endif
|
||||
return VK_SUCCESS;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user