OLD-10009: min/max samplers honour filterMinmaxImageComponentMapping (carries #279) #1201

Closed
TimIdle wants to merge 1 commit from upstream-pr/1201 into main
TimIdle commented 2026-11-24 20:07:33 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by TimIdle on 2026-11-24T20:07:33Z.


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

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5479483026 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1201). Originally posted by [TimIdle](https://github.com/TimIdle) on 2026-11-24T20:07:33Z. --- 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)
TimIdle commented 2026-11-26 11:41:03 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by TimIdle on 2026-11-26T11:41:03Z.


Closing this one, no review yet and CI is red. Will reopen if it is still needed.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7191037305 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1201#issuecomment-7191037305). Originally posted by [TimIdle](https://github.com/TimIdle) on 2026-11-26T11:41:03Z. --- Closing this one, no review yet and CI is red. Will reopen if it is still needed.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
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.

Reference
ProjectLeonida/mandy!1201
No description provided.