mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 21:30:53 +01:00
[PR #1505] d3d12_depth_resolve_test: the host's edge draw takes the standard 4x sample positions (TEST-DEPTH-RESOLVE-SAMPLE-POSITIONS) #1533
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#1533
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/1505
Author: @QemmHD
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:claude/depth-resolve-sample-positions📝 Commits (1)
595f1bdd3d12_depth_resolve_test: the host's edge draw takes the standard 4x sample positions📊 Changes
1 file changed (+17 additions, -0 deletions)
View changed files
📝
runtime/test/d3d12_depth_resolve_test.cpp(+17 -0)📄 Description
Claimed in the coordination issue as: TEST-DEPTH-RESOLVE-SAMPLE-POSITIONS (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7150863045)
What and why
d3d12_depth_resolvefails its 34 edge cases (TEST-848) on an RTX 4070 SUPER (NVIDIA 621.24, Windows 11). The layer is not at fault: it matches WARP 71/71, and the analytic standard 4x pattern byte for byte. The host reference is what's off. This PC's NVIDIA global profile has "Enable sample interleaving" (MFAA) on, and with it a native D3D12 4x target's default sample positions are not the standard pattern:That was measured with a small D3D12-only program (no Vulkan, no Leonida). No PSO or resource setting changes it; only an explicit
SetSamplePositionswith the standard pattern does, and then the grid equals WARP. Vulkan on the same driver keeps the standard locations, and so does the layer.This PR makes the edge cases set the standard 4x positions where the device has programmable sample positions, before the clears and through the resolve. The layer and WARP report none, so their results are unchanged. This is probably also why #67 lists
d3d12_depth_resolveas a "known failure" on an RTX 5060 Ti.Tested
Windows 11, RTX 4070 SUPER (NVIDIA 621.24), VS 2022 + Ninja, RelWithDebInfo:
d3d12_depth_resolveexits 0. On the NVIDIA host, 74 of 97 cases now match (36 before; the rest are the cases the test already marks as host-dependent). WARP matches 71/71. It passes four repeated runs and underLEONIDA_VK_VALIDATION=1with 0 validation errors, and in ctest.GPUs tested: NVIDIA GeForce RTX 4070 SUPER, driver 621.24, Windows 11
AI-assisted: yes
Checklist
mainand merges cleanly.docs/design.md. (n/a: test-only)AI-assisted (Claude Code, Claude Opus 5.5).
🤖 Generated with Claude Code
https://claude.ai/code/session_01SR1Fv7eQNgZjM6miWPKjHf
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.