Skip to content

hk: fixes to pass gtk4 tests

Janne Grunau requested to merge jannau/mesa:hk_gtk_4_test_fixes into main

What does this MR do and why?

hk: Use rowPitch from VkImageDrmFormatModifierExplicitCreateInfoEXT
    
Imported linear images may have an arbitrary row pitch. As long as it is
aligned to 16 agx can support. Initialize `.linear_stride_B` from the
supplied parameter and let ail verify it.
    
Fixes gtk dmabuf based tests with a pitch aligned to 256.
    
Signed-off-by: Janne Grunau <j@jannau.net>

hk: Replace alloca with malloc in queue_submit

`command_count` is under control of the vulkan application and can
become quite large. At a command count around 30000 the size of the
alloca() allocated buffers exceeds the default stack size of 16MB.

Fixes fixes segfaults in 'gtk:compare vulkan lots-of-offscreens-nogl*'
gtk 4 test cases which end up with a `command_count` around 32768.

Fixes: https://gitlab.freedesktop.org/asahi/mesa/-/issues/47
Signed-off-by: Janne Grunau <j@jannau.net>

Fixes: #47 (closed)

Merge request reports

Loading