mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:10:52 +01:00
[PR #307] d3d12_clear_test: report Vulkan driver NaN depth-clear canonicalization to 1.0 on AMD #359
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#359
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/307
Author: @Andretuta
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:old-pr/10042📝 Commits (1)
26eedb7d3d12_clear_test: report Vulkan driver NaN depth-clear canonicalization to 1.0 on AMD📊 Changes
1 file changed (+20 additions, -4 deletions)
View changed files
📝
runtime/test/d3d12_clear_test.cpp(+20 -4)📄 Description
Original description (mentions and
#Nreferences are disabled; the numbers refer to the old repository):What and why
On AMD Radeon RX 9070 XT (Windows 11, AMD driver 26.10.1, Vulkan 1.4), \d3d12_clear\ passes \1.5\ / -0.5\ depth clears and \lags 0, but fails ^G NaN depth stays NaN:
\\
a NaN depth stays NaN (0,0): layer cleared 1, WARP nan
\\
Even with \VK_EXT_depth_range_unrestricted, AMD's Vulkan driver canonicalizes a \NaN\ depth clear value in \kCmdClearDepthStencilImage\ / \kCmdClearAttachments\ to \1.0f, whereas WARP stores the quiet NaN verbatim.
This detects when all texels of a \NaN\ depth clear are canonicalized to \1.0f\ by the Vulkan driver (while WARP stores \NaN), reports it as a driver difference, and still fails on partial/other mismatches or any regression in \Close(), \1.5/-0.5, or \lags 0.
Verification
#9857applied to build):🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.