mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:55:52 +01:00
[PR #2023] d3d12: an integer render target bypasses its blender (D3D-INTEGER-TARGET-BLEND-BYPASS) #2029
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#2029
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/2023
Author: @BubsMcgee
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:fix/integer-target-blend-bypass📝 Commits (1)
8536bcbd3d12: an integer render target bypasses its blender📊 Changes
2 files changed (+58 additions, -2 deletions)
View changed files
📝
runtime/shims/d3d12_vulkan_device.cpp(+34 -2)📝
runtime/test/d3d12_pso_validation_test.cpp(+24 -0)📄 Description
Ports the first concrete gap from DexNom/VIctory (source-only Rust runtime,
GPL-3.0-or-later), commit
ddb7332, reimplemented for this Vulkan layer.What
blendEnable = VK_TRUE. The layer clears the enable forthat target only, keeps its
colorWriteMask(and every other target's state), and no longer counts it as adual-source consumer.
CB_BLENDnregardless of the format, and D3D12Xbox bypasses the blender oninteger surfaces. PC D3D12 rejects that state at pipeline creation, and Vulkan requires
blendEnable = VK_FALSE(VUID-VkPipelineColorBlendAttachmentState-blendEnable-04727), so forwarding it couldonly fail the pipeline — the failed-
CreatePipelineStateclass reported on RADV in #1915.Test
d3d12_pso_validation_test§3b creates a layer-only pipeline with anR8G8B8A8_UINTtarget, blending enabledand a red write mask. PC D3D12 rejects the same state, so it is deliberately not in the parity set.
PASS (61 layer checks, 100 host comparisons), with the plain run andwith
LEONIDA_VK_VALIDATION=1.Attribution
Adapted from DexNom/VIctory
ddb7332(GPL-3.0-or-later), "Restore 40 shader variants and repair integer-targetblending"; noted in the code comment. AI-assisted.
Claimed as
D3D-INTEGER-TARGET-BLEND-BYPASSin the coordination issue.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.