mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:05:54 +01:00
[PR #279] d3d12: min/max samplers honour filterMinmaxImageComponentMapping (D3D… #332
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#332
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/279
Author: @Andretuta
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:old-pr/10009📝 Commits (1)
474b799d3d12: 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
Original description (mentions and
#Nreferences 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
docs/design.md, with how it was confirmed.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.