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

Closed
github-bot wants to merge 1 commit from github-bot/gh-1201 into main AGit
Owner

@⁠TimIdle on GitHub · 2026-11-24 20:07 UTC · original
TimIdle:oldpr-10009-minmax-mapping → main · +35 −7 · 4 files · 1 commits · closed without merging

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

**@⁠TimIdle** on GitHub · 2026-11-24 20:07 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1201) `TimIdle:oldpr-10009-minmax-mapping` → `main` · +35 −7 · 4 files · 1 commits · closed without merging Claimed in the coordination issue as: OLD-10009 ([claim](https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14)) ### 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)
Without VkPhysicalDeviceSamplerFilterMinmaxProperties::
filterMinmaxImageComponentMapping, a minimum/maximum reduction defines
only the R component of a sample; G, B and A are undefined. The AMD
Windows driver on Polaris (RX 580) reports singleComponentFormats = 1
and imageComponentMapping = 0, and returns exactly that: R is correct,
G/B/A vary.

The layer now records the property in VulkanDeviceInfo and logs once
when it creates a reduction sampler on a device without it. The
descriptor test compares R only on such devices, and all four channels
where the device maps every component.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:42:41 +00:00
github-bot closed this pull request 2026-11-26 11:42:19 +00:00
Author
Owner

@⁠TimIdle on GitHub · 2026-11-26 11:41 UTC · original

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

**@⁠TimIdle** on GitHub · 2026-11-26 11:41 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1201#issuecomment-7191037305) Closing this one, no review yet and CI is red. Will reopen if it is still needed.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.