After updating fr. Android 12=>13 on Galaxy S21 my Vulkan stuff crashs

My Vulkan Android stuff crashes after update from Android 12 to Android 13 on my Samsung Galaxy S21.

APKs to test:

https://vserver.rosseaux.net/stuff/vulkanandroidissue1/examples.apk
https://vserver.rosseaux.net/stuff/vulkanandroidissue1/tastyrush_debug_old.apk
https://vserver.rosseaux.net/stuff/vulkanandroidissue1/tastyrush_debug_new.apk

Until including Android 12 at least the two first APKs were running on my Exynos-based Samsung Galaxy S21, but not more from Android 13 upwards. And the third APK is just attempt for to fix/workaround it on my own side, but without succuess, so far.

The vulkan validation layers are also slient. But I get:

2022-12-08 01:18:25.343 27184-27220/com.pasvulkan.tastyrush E/gralloc4: ERROR: Format allocation info not found for format: 38
2022-12-08 01:18:25.343 27184-27220/com.pasvulkan.tastyrush E/gralloc4: ERROR: Format allocation info not found for format: 0
2022-12-08 01:18:25.343 27184-27220/com.pasvulkan.tastyrush E/gralloc4: Invalid base format! req_base_format = 0x0, req_format = 0x38, type = 0x0
2022-12-08 01:18:25.343 27184-27220/com.pasvulkan.tastyrush E/gralloc4: ERROR: Unrecognized and/or unsupported format 0x38 and usage 0xb00
2022-12-08 01:18:25.343 27184-27220/com.pasvulkan.tastyrush E/Gralloc4: isSupported(1, 1, 56, 1, ...) failed with 5
2022-12-08 01:18:25.344 27184-27220/com.pasvulkan.tastyrush E/GraphicBufferAllocator: Failed to allocate (4 x 4) layerCount 1 format 56 usage b00: 5
2022-12-08 01:18:25.344 27184-27220/com.pasvulkan.tastyrush E/AHardwareBuffer: GraphicBuffer(w=4, h=4, lc=1) failed (Unknown error -5), handle=0x0
2022-12-08 01:18:25.346 27184-27220/com.pasvulkan.tastyrush E/gralloc4: ERROR: Format allocation info not found for format: 38
2022-12-08 01:18:25.346 27184-27220/com.pasvulkan.tastyrush E/gralloc4: ERROR: Format allocation info not found for format: 0
2022-12-08 01:18:25.346 27184-27220/com.pasvulkan.tastyrush E/gralloc4: Invalid base format! req_base_format = 0x0, req_format = 0x38, type = 0x0
2022-12-08 01:18:25.346 27184-27220/com.pasvulkan.tastyrush E/gralloc4: ERROR: Unrecognized and/or unsupported format 0x38 and usage 0xb00
2022-12-08 01:18:25.346 27184-27220/com.pasvulkan.tastyrush E/Gralloc4: isSupported(1, 1, 56, 1, ...) failed with 5
2022-12-08 01:18:25.346 27184-27220/com.pasvulkan.tastyrush E/GraphicBufferAllocator: Failed to allocate (4 x 4) layerCount 1 format 56 usage b00: 5
2022-12-08 01:18:25.346 27184-27220/com.pasvulkan.tastyrush E/AHardwareBuffer: GraphicBuffer(w=4, h=4, lc=1) failed (Unknown error -5), handle=0x0

where it crashes later at vkDeviceWaitIdle or vkQueueWaitIdle then, siehe attached logcat text file
logcat.txt (187.8 KB)
.

So, the question is why it crashes now on Android >=13 . It seems to be have something with the HAL pixel format inside the gralloc4 stuff. Does anyone happen to know more about this? Was anything major relevant changed from Android 12 to Android 13 regarding Vulkan on your side in the Android Mali graphics driver?

Hello there,
Please create a support request in the Samsung Developer Support channel

Mobassir Ahsan
Samsung Developer Technical Support