mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:25:53 +01:00
[PR #778] d3d12: replay programmable sample positions (D3D-SAMPLE-POSITIONS) #817
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#817
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/778
Author: @kawaii-shakal
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:d3d-sample-positions📝 Commits (7)
27781f7d3d12: replay programmable sample positions (D3D-SAMPLE-POSITIONS)07f9edeMerge main and retain sample locations through depth clear initializationa3e2088Merge main into d3d-sample-positionsec2af13Merge upstream main into d3d-sample-positionsf17c365Merge upstream main into d3d-sample-positionsc1a1f3dMerge upstream main into d3d-sample-positions5d30fcdMerge remote-tracking branch 'upstream/main' into d3d-sample-positions📊 Changes
11 files changed (+332 additions, -62 deletions)
View changed files
📝
runtime/CMakeLists.txt(+3 -1)📝
runtime/shims/d3d12_com.cpp(+21 -0)📝
runtime/shims/d3d12_com.h(+1 -0)📝
runtime/shims/d3d12_vulkan_device.cpp(+60 -6)📝
runtime/src/command_list.h(+17 -1)📝
runtime/src/vulkan_backend.h(+3 -2)📝
runtime/src/vulkan_replay.h(+115 -49)📝
runtime/test/command_list_test.cpp(+16 -0)📝
runtime/test/d3d12_msaa_draw_test.cpp(+55 -3)📝
runtime/test/replay_texture_barrier_test.cpp(+36 -0)📝
runtime/test/vk_test_device.h(+5 -0)📄 Description
Claimed in the coordination issue as: D3D-SAMPLE-POSITIONS (claim)
What and why
SetSamplePositions was a stub and OPTIONS2 reported tier 0. Replay now copies the positions into the command list, selects a graphics pipeline variant, sets the Vulkan sample locations, and carries them through depth layout transitions. OPTIONS2 evaluates the supported grids per sample count.
Tested
Three GPU tests passed at
27781f7with Vulkan validation. The baseline observed tier 0 with the extension disabled. The programmable cases observed tier 2. Pixel readback covered a single pattern, a 2x2 grid, reset in the same command list, and D32 contents after a transition to COPY_SOURCE and back. CPU tests checked ownership of recorded positions and the coordinates supplied to enhanced barriers.GPUs tested: NVIDIA GeForce RTX 5070 Ti, Windows 11, driver 617.42.
Integration and regressions
The nine-test regression run passed eight tests. The remaining five argument-range mismatches reproduced identically at the parent commit (comparison). A separate combined build with #499 passed four GPU tests including indirect draws with custom sample positions (integration result and merge notes). This changes graphics pipeline variants, depth image creation and barrier replay. Rollback is a source revert.
47c65117AI-assisted: yes. Implemented and tested by Codex.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.