d3d12: min/max samplers honour filterMinmaxImageComponentMapping (D3D… #279

Open
github-bot wants to merge 1 commit from github-bot/gh-279 into main AGit
Owner

@⁠Andretuta on GitHub · 2026-11-24 02:58 UTC · original
ubiquitarianism:old-pr/10009 → main · +35 −7 · 4 files · 1 commits · draft

Carried over from old PR 10009 by Zilumz1 in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch old-pr/10009, exactly that PR's last commit. All carried-over PRs are listed in #17.
Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it.
Zilumz1: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one.


Original description (mentions and #N references are disabled; the numbers refer to the old repository):

…-994)

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.

Claimed in the coordination issue as:

Depends on:

What and why

Tested

AI-assisted:

Checklist

  • 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.
**@⁠Andretuta** on GitHub · 2026-11-24 02:58 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/279) `ubiquitarianism:old-pr/10009` → `main` · +35 −7 · 4 files · 1 commits · draft > Carried over from **old PR 10009** by `Zilumz1` in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch `old-pr/10009`, exactly that PR's last commit. All carried-over PRs are listed in #17. > Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it. > `Zilumz1`: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one. --- Original description (mentions and `#N` references are disabled; the numbers refer to the old repository): …-994) 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. Claimed in the coordination issue as: <!-- the item ID from the open "Coordinating who works on what" issue, for example TEST-17, or a link to your claim --> Depends on: <!-- `#N` for every pull request this one builds on or conflicts with (the coordination issue's Commands section, AGENTS.md); delete the line if it builds on none and conflicts with none --> ### What and why <!-- What this changes and the problem it solves. --> ### Tested <!-- What you ran and on which GPU and driver (CONTRIBUTING.md). For the shader translator: how many shaders translate and pass spirv-val, before and after. --> AI-assisted: <!-- yes or no (AGENTS.md asks a coding agent to say so) --> ### Checklist - [ ] 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.
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 08:51:44 +00:00
This pull request has changes conflicting with the target branch.
  • runtime/test/vk_test_device.h
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/279/head:github-bot/gh-279'
git switch 'github-bot/gh-279'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-279'
git switch 'github-bot/gh-279'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-279'
git switch 'github-bot/gh-279'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-279'
git switch 'main'
git merge --squash 'github-bot/gh-279'
git switch 'main'
git merge --ff-only 'github-bot/gh-279'
git switch 'main'
git merge 'github-bot/gh-279'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.