PC-Graphics: source-built D3D12 Present plus native Vulkan Windows/Linux #30

Open
opened 2026-11-26 21:02:00 +00:00 by github-bot · 3 comments
Owner

@⁠ProhorovIlja on GitHub · 2026-11-21 23:07 UTC · original

Acceptance: a normal Windows x64 app creates a D3D12 device, resource upload, command list, swapchain and presents a deterministic visible frame, captures GPU/driver/OS and pixel comparison. Separately build native ELF x86-64 Vulkan renderer on Linux (not Wine/Proton or CPU instruction emulation), verify Vulkan WSI window/Present, disposal, device loss and fallback. Optional Vulkan Windows backend. Explicit barriers, PSO cache and memory budgets; no Xbox D3D12.X claim. Starting evidence: PR #27 D3D12 WARP queue/fence through native PE, NOT Present. Official public source: microsoft/DirectX-Graphics-Samples, KhronosGroup/Vulkan-Samples, microsoft/Xbox-GDK-Samples, exact SHAs tracked in sources/upstreams.json. No game files.

2026-11-22 incremental native graphics proof

  • PR #36, Windows Actions 44960645572: original D3D12 WARP VS/PS triangle, actual raster DrawInstanced, RGBA8 offscreen texture, copy/readback, and center/background pixel correctness PASS. Real desktop D3D12 GPU API execution, software WARP renderer only — no window/swapchain Present, Xbox D3D12.X or title assets.
  • PR #38, Ubuntu Vulkan Actions 44960887330: original Linux x86-64 ELF Vulkan instance, device, graphics queue and idle PASS on CPU software Mesa Vulkan device type 4; not a physical-GPU proof or rendered frame.

Still pending: actual native Windows DXGI and Linux Vulkan WSI window/swapchain Present, deterministic screenshot/readback on each, device-loss and physical AMD/NVIDIA/Intel profiling. Source-built PC demos are separate from Xbox-specific title compatibility.

**@⁠ProhorovIlja** on GitHub · 2026-11-21 23:07 UTC · [original](https://github.com/ProhorovIlja/NativeX-Runtime/issues/30) Acceptance: a normal Windows x64 app creates a D3D12 device, resource upload, command list, swapchain and presents a deterministic visible frame, captures GPU/driver/OS and pixel comparison. Separately build native ELF x86-64 Vulkan renderer on Linux (not Wine/Proton or CPU instruction emulation), verify Vulkan WSI window/Present, disposal, device loss and fallback. Optional Vulkan Windows backend. Explicit barriers, PSO cache and memory budgets; no Xbox D3D12.X claim. Starting evidence: PR #27 D3D12 WARP queue/fence through native PE, NOT Present. Official public source: microsoft/DirectX-Graphics-Samples, KhronosGroup/Vulkan-Samples, microsoft/Xbox-GDK-Samples, exact SHAs tracked in sources/upstreams.json. No game files. ## 2026-11-22 incremental native graphics proof - [PR #36](https://github.com/ProhorovIlja/Scarlett-Windows-Compat/pull/36), [Windows Actions 44960645572](https://github.com/ProhorovIlja/Scarlett-Windows-Compat/actions/runs/44960645572): original D3D12 WARP VS/PS triangle, actual raster DrawInstanced, RGBA8 offscreen texture, copy/readback, and center/background pixel correctness **PASS**. Real desktop D3D12 GPU API execution, software WARP renderer only — no window/swapchain Present, Xbox D3D12.X or title assets. - [PR #38](https://github.com/ProhorovIlja/Scarlett-Windows-Compat/pull/38), [Ubuntu Vulkan Actions 44960887330](https://github.com/ProhorovIlja/Scarlett-Windows-Compat/actions/runs/44960887330): original Linux x86-64 ELF Vulkan instance, device, graphics queue and idle **PASS** on CPU software Mesa Vulkan device type 4; not a physical-GPU proof or rendered frame. Still pending: actual native Windows DXGI and Linux Vulkan WSI window/swapchain Present, deterministic screenshot/readback on each, device-loss and physical AMD/NVIDIA/Intel profiling. Source-built PC demos are separate from Xbox-specific title compatibility.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 21:02:00 +00:00
Author
Owner

@⁠ProhorovIlja on GitHub · 2026-11-22 01:28 UTC · original

2026-11-22 source-built graphics milestone — partial progress, not completion. PR #73 independently passed two real Windows D3D12 WARP BC1/BC3 compressed texture tests: genuine GPU texture allocation + GetCopyableFootprints upload + shader-visible SRV descriptor + original HLSL pixel-shader Texture2D.Load + fullscreen draw + 256-pixel (1024 RGBA channel) CPU-oracle readback per compressed format (Windows/Linux CI 44971229821). CPU-oracle PR #72 also passed strict BC1/BC3 4x4 decoder, interpolation, BC3 alpha and non-power-of-two 5x7 raster tests (CI 44970755832). These extend earlier original D3D12 WARP 12-frame DXGI Present/resize (PR #66) and native Linux Vulkan offscreen raster (PR #56). Outstanding: Xbox D3D12.X console resource/command semantics, RDNA2 shader conversion, BC7/BC6H and actual console swizzle, real Window/WSI Present on native Linux, and physical AMD/NVIDIA/Intel GPU correctness/performance; no GTA VI executable/assets or frame tested. WARP and Mesa software GPUs are correctness references, not physical hardware evidence.

**@⁠ProhorovIlja** on GitHub · 2026-11-22 01:28 UTC · [original](https://github.com/ProhorovIlja/NativeX-Runtime/issues/30#issuecomment-7072228926) 2026-11-22 source-built graphics milestone — **partial progress, not completion**. [PR #73](https://github.com/ProhorovIlja/Scarlett-Windows-Compat/pull/73) independently passed two real Windows D3D12 WARP BC1/BC3 compressed texture tests: genuine GPU texture allocation + GetCopyableFootprints upload + shader-visible SRV descriptor + original HLSL pixel-shader Texture2D.Load + fullscreen draw + 256-pixel (1024 RGBA channel) CPU-oracle readback per compressed format ([Windows/Linux CI 44971229821](https://github.com/ProhorovIlja/Scarlett-Windows-Compat/actions/runs/44971229821)). CPU-oracle [PR #72](https://github.com/ProhorovIlja/Scarlett-Windows-Compat/pull/72) also passed strict BC1/BC3 4x4 decoder, interpolation, BC3 alpha and non-power-of-two 5x7 raster tests ([CI 44970755832](https://github.com/ProhorovIlja/Scarlett-Windows-Compat/actions/runs/44970755832)). These extend earlier original D3D12 WARP 12-frame DXGI Present/resize ([PR #66](https://github.com/ProhorovIlja/Scarlett-Windows-Compat/pull/66)) and native Linux Vulkan offscreen raster ([PR #56](https://github.com/ProhorovIlja/Scarlett-Windows-Compat/pull/56)). **Outstanding:** Xbox D3D12.X console resource/command semantics, RDNA2 shader conversion, BC7/BC6H and actual console swizzle, real Window/WSI Present on native Linux, and physical AMD/NVIDIA/Intel GPU correctness/performance; no GTA VI executable/assets or frame tested. WARP and Mesa software GPUs are correctness references, not physical hardware evidence.
Author
Owner

@⁠Yoshi-233 on GitHub · 2026-11-25 01:34 UTC · original

I built the native Linux Vulkan fixtures from a clean checkout of b3087ce0ab191227dc9e7af37cab97a0b097bb98 and ran the same Release binaries twice on Ubuntu 24.04.5 x86-64 (kernel 7.0.0-43-generic). All three tests passed on each driver, with zero skips.

Observation NVIDIA T400, driver 595.99.02 Mesa llvmpipe, LLVM 20.1.2
Vulkan adapter Discrete GPU, 10de:1fb2, Vulkan 1.4.329 CPU, Vulkan 1.4.318
Device and queue creation Pass Pass
Compute readback, 256 invocations Checksum 388068167296 Checksum 388068167296
32×32 offscreen triangle Pixel check passed, 392 triangle / 632 background Pixel check passed, 392 triangle / 632 background

To reproduce on a host with both ICDs:

cmake -S fixtures/native-linux-vulkan -B build-vk -DCMAKE_BUILD_TYPE=Release
cmake --build build-vk -j4
for driver in nvidia lvp; do
  env -u DISPLAY -u WAYLAND_DISPLAY \
    VK_DRIVER_FILES="/usr/share/vulkan/icd.d/${driver}_icd.json" \
    ctest --test-dir build-vk -V --no-tests=error
done

The fixtures emit a literal false for their hardware-verification flags on both runs. I checked the NVIDIA adapter separately: vulkaninfo --summary under that ICD reported the T400, and the fixture's vendor/device IDs matched lspci -nnk. This adds an independent NVIDIA offscreen correctness result. Linux window/swapchain Present, device-loss recovery and performance remain open.

**@⁠Yoshi-233** on GitHub · 2026-11-25 01:34 UTC · [original](https://github.com/ProhorovIlja/NativeX-Runtime/issues/30#issuecomment-7149701440) I built the native Linux Vulkan fixtures from a clean checkout of `b3087ce0ab191227dc9e7af37cab97a0b097bb98` and ran the same Release binaries twice on Ubuntu 24.04.5 x86-64 (kernel 7.0.0-43-generic). All three tests passed on each driver, with zero skips. | Observation | NVIDIA T400, driver 595.99.02 | Mesa llvmpipe, LLVM 20.1.2 | | --- | --- | --- | | Vulkan adapter | Discrete GPU, `10de:1fb2`, Vulkan 1.4.329 | CPU, Vulkan 1.4.318 | | Device and queue creation | Pass | Pass | | Compute readback, 256 invocations | Checksum `388068167296` | Checksum `388068167296` | | 32×32 offscreen triangle | Pixel check passed, 392 triangle / 632 background | Pixel check passed, 392 triangle / 632 background | To reproduce on a host with both ICDs: ```sh cmake -S fixtures/native-linux-vulkan -B build-vk -DCMAKE_BUILD_TYPE=Release cmake --build build-vk -j4 for driver in nvidia lvp; do env -u DISPLAY -u WAYLAND_DISPLAY \ VK_DRIVER_FILES="/usr/share/vulkan/icd.d/${driver}_icd.json" \ ctest --test-dir build-vk -V --no-tests=error done ``` The fixtures emit a literal `false` for their hardware-verification flags on both runs. I checked the NVIDIA adapter separately: `vulkaninfo --summary` under that ICD reported the T400, and the fixture's vendor/device IDs matched `lspci -nnk`. This adds an independent NVIDIA offscreen correctness result. Linux window/swapchain Present, device-loss recovery and performance remain open.
Author
Owner

@⁠Yoshi-233 on GitHub · 2026-11-25 02:45 UTC · original

Following up on my offscreen result: #118 now checks what actually appears in an X11 window after Vulkan presentation and resize. On Ubuntu 24.04.5 under Xvfb, the NVIDIA driver and Mesa llvmpipe each passed three repeat runs. Each run recreated the swapchain three times and checked 83,330 window pixels over eight frames. A deliberately wrong fragment color failed the pixel check.

This covers the Linux X11 path through swapchain recreation. Physical display scanout and device-loss recovery still need separate coverage. The exact CTest command is in the PR.

**@⁠Yoshi-233** on GitHub · 2026-11-25 02:45 UTC · [original](https://github.com/ProhorovIlja/NativeX-Runtime/issues/30#issuecomment-7151151214) Following up on my offscreen result: #118 now checks what actually appears in an X11 window after Vulkan presentation and resize. On Ubuntu 24.04.5 under Xvfb, the NVIDIA driver and Mesa llvmpipe each passed three repeat runs. Each run recreated the swapchain three times and checked 83,330 window pixels over eight frames. A deliberately wrong fragment color failed the pixel check. This covers the Linux X11 path through swapchain recreation. Physical display scanout and device-loss recovery still need separate coverage. The exact CTest command is in the PR.
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/ProhorovIlja--NativeX-Runtime#30
No description provided.