upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan <jonathan@thezenpanel.com>2026-11-22 18:46:56 -0400
committerJonathan <jonathan@thezenpanel.com>2026-11-22 19:40:32 -0400
commitdcb59b5c1ec7d9fb4ee4e0e18df5616f14b2e087 (patch)
tree8e493466146e7070ac819343ba9287f77185bcb5
parentd220585977f47e1944a9245bd6ef8ec1a454d310 (diff)
Allow Tier 3 reference on any selected GPU
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
-rw-r--r--docs/d3d12_vulkan.md8
-rw-r--r--scripts/run_conservative_tier3_reference.ps18
2 files changed, 11 insertions, 5 deletions
diff --git a/docs/d3d12_vulkan.md b/docs/d3d12_vulkan.md
index 700a5e71e..f708277a2 100644
--- a/docs/d3d12_vulkan.md
+++ b/docs/d3d12_vulkan.md
@@ -715,9 +715,11 @@ The compute path, end to end:
715 It reports the selected Vulkan device's `fullyCoveredFragmentShaderInputVariable`, matches that device to its 715 It reports the selected Vulkan device's `fullyCoveredFragmentShaderInputVariable`, matches that device to its
716 native D3D12 adapter by LUID, then checks the adapter's Tier 3 `SV_InnerCoverage` output on four synthetic 716 native D3D12 adapter by LUID, then checks the adapter's Tier 3 `SV_InnerCoverage` output on four synthetic
717 triangles. On Windows with Visual Studio 2022 and Windows SDK 10.0.26100 or newer, run 717 triangles. On Windows with Visual Studio 2022 and Windows SDK 10.0.26100 or newer, run
718 `.\scripts\run_conservative_tier3_reference.ps1 -Device 3080` from the repository root. It builds only this 718 `.\scripts\run_conservative_tier3_reference.ps1` from the repository root; by default this uses Vulkan's default
719 test, needs no glslang, and fetches the pinned Vulkan headers only if none are installed. The verbose CTest output 719 adapter. Pass `-Device <name substring>` to select a specific one when multiple GPUs are present. It builds only
720 reports the capability and result; it skips if the selected device lacks a matching native D3D12 adapter or Tier 3. 720 this test, needs no glslang, and fetches the pinned Vulkan headers only if none are installed. The verbose CTest
721 output reports the capability and result; it skips if the selected device lacks a matching native D3D12 adapter
722 or Tier 3.
721 - **Formats:** dynamic rendering takes the RTV and DSV formats. A draw that leaves a slot unbound for which the 723 - **Formats:** dynamic rendering takes the RTV and DSV formats. A draw that leaves a slot unbound for which the
722 PSO names a format (D3D12 allows it and discards those writes) uses a variant of the pipeline with that format 724 PSO names a format (D3D12 allows it and discards those writes) uses a variant of the pipeline with that format
723 undefined, built on first use and kept with the PSO. Bit i of the variant key is colour slot i, and bit 8 is 725 undefined, built on first use and kept with the PSO. Bit i of the variant key is colour slot i, and bit 8 is
diff --git a/scripts/run_conservative_tier3_reference.ps1 b/scripts/run_conservative_tier3_reference.ps1
index cc3406f7e..86d043b76 100644
--- a/scripts/run_conservative_tier3_reference.ps1
+++ b/scripts/run_conservative_tier3_reference.ps1
@@ -1,5 +1,5 @@
1param( 1param(
2 [ValidateNotNullOrEmpty()][string]$Device = "3080" 2 [string]$Device = ""
3) 3)
4$ErrorActionPreference = "Stop" 4$ErrorActionPreference = "Stop"
5 5
@@ -15,7 +15,11 @@ if ($LASTEXITCODE -ne 0) { throw "Building the Tier 3 reference test failed ($LA
15 15
16$previousFilter = $env:LEONIDA_VK_DEVICE 16$previousFilter = $env:LEONIDA_VK_DEVICE
17try { 17try {
18 $env:LEONIDA_VK_DEVICE = $Device 18 if ([string]::IsNullOrWhiteSpace($Device)) {
19 if (Test-Path Env:LEONIDA_VK_DEVICE) { Remove-Item Env:LEONIDA_VK_DEVICE }
20 } else {
21 $env:LEONIDA_VK_DEVICE = $Device
22 }
19 & ctest --test-dir $build -C RelWithDebInfo -R d3d12_conservative_tier3_reference --output-on-failure -V 23 & ctest --test-dir $build -C RelWithDebInfo -R d3d12_conservative_tier3_reference --output-on-failure -V
20 if ($LASTEXITCODE -ne 0) { throw "The Tier 3 reference test failed ($LASTEXITCODE)." } 24 if ($LASTEXITCODE -ne 0) { throw "The Tier 3 reference test failed ($LASTEXITCODE)." }
21} finally { 25} finally {