[PR #1201] [CLOSED] OLD-10009: min/max samplers honour filterMinmaxImageComponentMapping (carries #279) #1233

Closed
opened 2026-11-26 20:20:32 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1201
Author: @TimIdle
Created: 11/24/2026
Status: ❌ Closed

Base: main ← Head: oldpr-10009-minmax-mapping


📝 Commits (1)

  • 5bfd8a6 d3d12: min/max samplers honour filterMinmaxImageComponentMapping (D3D-994)

📊 Changes

4 files changed (+35 additions, -7 deletions)

View changed files

📝 runtime/shims/d3d12_com.h (+4 -0)
📝 runtime/shims/d3d12_vulkan_device.cpp (+11 -0)
📝 runtime/test/d3d12_descriptor_test.cpp (+12 -7)
📝 runtime/test/vk_test_device.h (+8 -0)

📄 Description

Claimed in the coordination issue as: OLD-10009 (claim)

What and why

This carries forward old-pr/10009 by @Zilumz1 (draft #279). The commit is cherry-picked onto main unchanged, with the author kept.

Without VkPhysicalDeviceSamplerFilterMinmaxProperties::filterMinmaxImageComponentMapping, a minimum or maximum reduction defines only the R component of a sample (Vulkan specification, Texel Filtering). G, B and A are undefined there (D3D-994, Polaris on the AMD Windows driver). The layer now reads the property, logs once when a min/max sampler is created without it, and d3d12_descriptor_test compares only R on such a device, all four channels elsewhere.

Tested

Native Windows 11 10.0.26300, MSVC 19.44, RelWithDebInfo, LEONIDA_REQUIRE_VULKAN=ON, on main 364ab4e plus the commit.

Check Result
d3d12_descriptor_test pass: sampler reduction min/max (RGBA8=yes, BC1=yes, compared RGBA): min 64/64, max 64/64
full ctest -j 6 316 of 316 passed, gameinput disabled.

The RTX 2050 reports filterMinmaxImageComponentMapping, so this run covers the full RGBA path and shows the property is read. The R-only path needs a device without it, such as the Polaris card D3D-994 names. I could not run that here.

GPUs tested: NVIDIA GeForce RTX 2050 (Ampere GA107, laptop), driver 621.24, Windows 11

AI-assisted: yes (Claude Code)

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (No translator rule here.)

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/1201 **Author:** [@TimIdle](https://github.com/TimIdle) **Created:** 11/24/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `oldpr-10009-minmax-mapping` --- ### 📝 Commits (1) - [`5bfd8a6`](https://github.com/ubiquitarianism/leonida/commit/5bfd8a6636f906c2189ac43a38e2b80eeb195120) d3d12: min/max samplers honour filterMinmaxImageComponentMapping (D3D-994) ### 📊 Changes **4 files changed** (+35 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `runtime/shims/d3d12_com.h` (+4 -0) 📝 `runtime/shims/d3d12_vulkan_device.cpp` (+11 -0) 📝 `runtime/test/d3d12_descriptor_test.cpp` (+12 -7) 📝 `runtime/test/vk_test_device.h` (+8 -0) </details> ### 📄 Description Claimed in the coordination issue as: OLD-10009 ([claim](https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7142904770)) ### What and why This carries forward `old-pr/10009` by @Zilumz1 (draft #279). The commit is cherry-picked onto `main` unchanged, with the author kept. Without `VkPhysicalDeviceSamplerFilterMinmaxProperties::filterMinmaxImageComponentMapping`, a minimum or maximum reduction defines only the R component of a sample (Vulkan specification, Texel Filtering). G, B and A are undefined there (D3D-994, Polaris on the AMD Windows driver). The layer now reads the property, logs once when a min/max sampler is created without it, and `d3d12_descriptor_test` compares only R on such a device, all four channels elsewhere. ### Tested Native Windows 11 10.0.26300, MSVC 19.44, RelWithDebInfo, `LEONIDA_REQUIRE_VULKAN=ON`, on `main` `364ab4e` plus the commit. | Check | Result | |---|---| | `d3d12_descriptor_test` | pass: `sampler reduction min/max (RGBA8=yes, BC1=yes, compared RGBA): min 64/64, max 64/64` | | full `ctest -j 6` | 316 of 316 passed, `gameinput` disabled. | The RTX 2050 reports `filterMinmaxImageComponentMapping`, so this run covers the full RGBA path and shows the property is read. The R-only path needs a device without it, such as the Polaris card D3D-994 names. I could not run that here. GPUs tested: NVIDIA GeForce RTX 2050 (Ampere GA107, laptop), driver 621.24, Windows 11 AI-assisted: yes (Claude Code) ### Checklist - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [x] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. (No translator rule here.) 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:20:32 +01:00
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
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
starred/leonida#1233
No description provided.