How do you build your test project?
dxvk-native stuff has changed quite a bit in 2.4 in order to introduce a more stable abi and api, so it is expected that unmodified code from previous versions no longer works. Don't remember off the top of my head what changed, but wsi backend having to be set via an env var in order to be initialized properly is one of them.
Build steps is simple:
cd sdl_d3d9_cube
cmake --preset='ninja-Debug'
cmake --build --preset='Debug'
My system is Ubuntu 24.10, compiler is gcc.
I saw about WSI changes and using env var: DXVK_WSI_DRIVER=SDL2
Sorry to bother you. I found the problem - sdl_d3d9_cube was statically linked with SDL 2.32.4 and dxvk was using system libSDL2-2.0.so.0
DXVK_WSI_DRIVER=SDL2`x1 2025-04SDL_Cx1 2025-04SDL_Vx1 2025-04
I have simple SDL2+D3D9 test program that uses DXVK Native. With DXVK 2.3.1 it works fine.
With DXVK 2.6.1 I'm getting error:
"Video subsystem has not been initialized"
in this line:
https://github.com/doitsujin/dxvk/blob/v2.6.1/src/wsi/sdl2/wsi_platform_sdl2.cpp#L43
But I'm sure that
SDL_Vulkan_GetInstanceExtensions(nullptr, &extensionCount, nullptr)works fine, because I added it after
SDL_CreateWindow:https://github.com/q4a/sdl_texture2/blob/dxvk-bug/sdl_d3d9_cube/src/sdl_d3d9_cube.cpp#L310
And getting
extensionCount == 2.My simple SDL2+D3D9 test program is here:
https://github.com/q4a/sdl_texture2/tree/dxvk-bug/sdl_d3d9_cube
Software information
Simple sdl_d3d9_cube.
System information
Vulkaininfo