protonscr

test_tight_resource_alignment fails on drivers without sparse support

vkd3dclosed
HansKristian-Work/vkd3d-proton#2692 · opened 2025-11-06 by zdobersek · updated 2025-11-10 · 1 comments · github
Zzdobersek 2025-11-06 github

The test_tight_resource_alignment test case proceeds to create reserved resources without testing TiledResourcesTier, relying on sparse support in the Vulkan driver that might not be present.

Turnip's sparse support relies on relatively new kernel functionality. With not-exactly-latest kernels sparse support is not enabled, and this test ends up crashing on an assert inside Turnip.

Ddoitsujin maintainer 2025-11-06 github

We can add a feature check, but I think the more interesting question is how to prevent this in the future.

All devices that we're ever reasonably going to run any sort of D3D12 content on at all support sparse, these things are going to get overlooked time and time again unless we have some sort of way to emulate the most barebones min-spec-can't-run-any-actual-games type of Vulkan device in such a way that it blows up in an obvious way if we try to use any unsupported features.

Nothing extracted yet.