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

Closed
leonida/mandy
TimIdle wants to merge 0 commits from oldpr-10009-minmax-mapping into main

Pull request closed

This pull request cannot be reopened because the branch was deleted.

TimIdle commented 2026-11-24 20:07:33 +00:00

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

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

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

Closing this one, no review yet and CI is red. Will reopen if it is still needed.
Sign in to join this conversation.
No description provided.