Pre-modifier DRM imports not working correctly (amdvlk+vaapi)
Using legacy hacks for DMA buffers without modifiers. May result in corruption!
vk Validation Error: [ VUID-vkBindImageMemory-memoryOffset-01046 ] Object 0: handle = 0x360000000036, type = VK_OBJECT_TYPE_DEVICE_MEMORY; Object 1: handle = 0x350000000035, type = VK_OBJECT_TYPE_IMAGE; | MessageID = 0x5c522b34 | In vkBindImageMemory(), attempting to bind VkDeviceMemory 0x360000000036[] to VkImage 0x350000000035[], memoryOffset=0x220000 must be less than the memory allocation size 0x10e000. The Vulkan spec states: memoryOffset must be less than the size of memory (https://www.khronos.org/registry/vulkan/specs/1.3-extensions/html/vkspec.html#VUID-vkBindImageMemory-memoryOffset-01046)
using VkDeviceMemory: anon (0x360000000036)
using VkImage: anon (0x350000000035)
Backtrace:
#0 0x00007f888b9b3d21 in vk_dbg_utils_cb+0x2c8 at /mem/lib64/libplacebo.so.199+0x71d21
#1 0x00007f888044daba in _fini+0x2c8 at /lib64/libVkLayer_khronos_validation.so+0x672aba
#2 0x00007f888014fb9e in _fini+0x2c8 at /lib64/libVkLayer_khronos_validation.so+0x374b9e
#3 0x00007f88801503c9 in _fini+0x2c8 at /lib64/libVkLayer_khronos_validation.so+0x3753c9
#4 0x00007f8880173097 in _fini+0x2c8 at /lib64/libVkLayer_khronos_validation.so+0x398097
#5 0x00007f88801a97f9 in _fini+0x2c8 at /lib64/libVkLayer_khronos_validation.so+0x3ce7f9
#6 0x00007f88801abd68 in _fini+0x2c8 at /lib64/libVkLayer_khronos_validation.so+0x3d0d68
#7 0x00007f8880086a1c in _fini+0x2c8 at /lib64/libVkLayer_khronos_validation.so+0x2aba1c
#8 0x00007f888b9c1623 in vk_tex_create+0xe75 at /mem/lib64/libplacebo.so.199+0x7f623
#9 0x00007f888b96ee56 in pl_tex_create+0xe00 at /mem/lib64/libplacebo.so.199+0x2ce56
#10 0x0000000000407ba0 in pl_map_avframe_drm+0x2fa at /home/nand/dev/placebo/build/demos/plplay+0x7ba0
#11 0x0000000000407cdf in pl_map_avframe_derived+0xb2 at /home/nand/dev/placebo/build/demos/plplay+0x7cdf
#12 0x0000000000407e35 in pl_map_avframe_internal+0x109 at /home/nand/dev/placebo/build/demos/plplay+0x7e35
#13 0x000000000040833b in pl_map_avframe_ex+0x2d at /home/nand/dev/placebo/build/demos/plplay+0x833b
#14 0x00000000004091cf in map_frame+0x6b at /home/nand/dev/placebo/build/demos/plplay+0x91cf
#15 0x00007f888b9ab907 in map_frame+0xa4 at /mem/lib64/libplacebo.so.199+0x69907
#16 0x00007f888b9ada9d in prefill+0xb4 at /mem/lib64/libplacebo.so.199+0x6ba9d
#17 0x00007f888b9adda5 in pl_queue_update+0x244 at /mem/lib64/libplacebo.so.199+0x6bda5
#18 0x0000000000409bd1 in render_loop+0xd5 at /home/nand/dev/placebo/build/demos/plplay+0x9bd1
#19 0x000000000040a814 in main+0x7b0 at /home/nand/dev/placebo/build/demos/plplay+0xa814
#20 0x00007f8889da3630 in free_mem+0x7b0 at /lib64/libc.so.6+0x40630
#21 0x00007f8889da36f0 in free_mem+0x7b0 at /lib64/libc.so.6+0x406f0
#22 0x0000000000405bc5 in _start+0x25 at /home/nand/dev/placebo/build/demos/plplay+0x5bc5
vk Validation Error: [ VUID-vkBindImageMemory-memory-01509 ] Object 0: handle = 0x350000000035, type = VK_OBJECT_TYPE_IMAGE; Object 1: handle = 0x360000000036, type = VK_OBJECT_TYPE_DEVICE_MEMORY; Object 2: handle = 0x350000000035, type = VK_OBJECT_TYPE_IMAGE; | MessageID = 0x52314f15 | vkBindImageMemory(): for dedicated memory allocation VkDeviceMemory 0x360000000036[], VkMemoryDedicatedAllocateInfo:: VkImage 0x350000000035[] must be equal to VkImage 0x350000000035[] and memoryOffset 0x220000 must be zero. The Vulkan spec states: If the VkMemoryAllocateInfo provided when memory was allocated included a VkMemoryDedicatedAllocateInfo structure in its pNext chain, and VkMemoryDedicatedAllocateInfo::image was not VK_NULL_HANDLE, then image must equal VkMemoryDedicatedAllocateInfo::image and memoryOffset must be zero (https://www.khronos.org/registry/vulkan/specs/1.3-khr-extensions/html/vkspec.html#VUID-vkBindImageMemory-memory-01509)
using VkImage: anon (0x350000000035)
using VkDeviceMemory: anon (0x360000000036)
using VkImage: anon (0x350000000035)
Backtrace:
#0 0x00007f888b9b3d21 in vk_dbg_utils_cb+0x2c8 at /mem/lib64/libplacebo.so.199+0x71d21
#1 0x00007f888044daba in _fini+0x2c8 at /lib64/libVkLayer_khronos_validation.so+0x672aba
#2 0x00007f888014fb9e in _fini+0x2c8 at /lib64/libVkLayer_khronos_validation.so+0x374b9e
#3 0x00007f88801503c9 in _fini+0x2c8 at /lib64/libVkLayer_khronos_validation.so+0x3753c9
#4 0x00007f88801aaee9 in _fini+0x2c8 at /lib64/libVkLayer_khronos_validation.so+0x3cfee9
#5 0x00007f88801abd68 in _fini+0x2c8 at /lib64/libVkLayer_khronos_validation.so+0x3d0d68
#6 0x00007f8880086a1c in _fini+0x2c8 at /lib64/libVkLayer_khronos_validation.so+0x2aba1c
#7 0x00007f888b9c1623 in vk_tex_create+0xe75 at /mem/lib64/libplacebo.so.199+0x7f623
#8 0x00007f888b96ee56 in pl_tex_create+0xe00 at /mem/lib64/libplacebo.so.199+0x2ce56
#9 0x0000000000407ba0 in pl_map_avframe_drm+0x2fa at /home/nand/dev/placebo/build/demos/plplay+0x7ba0
#10 0x0000000000407cdf in pl_map_avframe_derived+0xb2 at /home/nand/dev/placebo/build/demos/plplay+0x7cdf
#11 0x0000000000407e35 in pl_map_avframe_internal+0x109 at /home/nand/dev/placebo/build/demos/plplay+0x7e35
#12 0x000000000040833b in pl_map_avframe_ex+0x2d at /home/nand/dev/placebo/build/demos/plplay+0x833b
#13 0x00000000004091cf in map_frame+0x6b at /home/nand/dev/placebo/build/demos/plplay+0x91cf
#14 0x00007f888b9ab907 in map_frame+0xa4 at /mem/lib64/libplacebo.so.199+0x69907
#15 0x00007f888b9ada9d in prefill+0xb4 at /mem/lib64/libplacebo.so.199+0x6ba9d
#16 0x00007f888b9adda5 in pl_queue_update+0x244 at /mem/lib64/libplacebo.so.199+0x6bda5
#17 0x0000000000409bd1 in render_loop+0xd5 at /home/nand/dev/placebo/build/demos/plplay+0x9bd1
#18 0x000000000040a814 in main+0x7b0 at /home/nand/dev/placebo/build/demos/plplay+0xa814
#19 0x00007f8889da3630 in free_mem+0x7b0 at /lib64/libc.so.6+0x40630
#20 0x00007f8889da36f0 in free_mem+0x7b0 at /lib64/libc.so.6+0x406f0
#21 0x0000000000405bc5 in _start+0x25 at /home/nand/dev/placebo/build/demos/plplay+0x5bc5
vk->BindImageMemory(vk->dev, tex_vk->img, mem->vkmem, mem->offset): VK_ERROR_VALIDATION_FAILED_EXT (../src/vulkan/gpu_tex.c:498)
It's entirely possible that it's impossible to reconcile this.