mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:40:52 +01:00
[PR #428] [CLOSED] d3d12: A8_UNORM render targets through VK_FORMAT_A8_UNORM_KHR, again (RT-A8-TARGET) #478
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#478
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/428
Author: @Mumogg
Created: 11/24/2026
Status: ❌ Closed
Base:
main← Head:a8-render-target📝 Commits (2)
2e4beefd3d12: A8_UNORM render targets through VK_FORMAT_A8_UNORM_KHR (VK_KHR_maintenance5)49b750ad3d12: an A8 render target's castable list takes its own format and refuses the others📊 Changes
10 files changed (+316 additions, -22 deletions)
View changed files
📝
docs/d3d12_vulkan.md(+9 -1)📝
runtime/shims/d3d12_com.h(+3 -0)📝
runtime/shims/d3d12_vulkan_device.cpp(+75 -12)📝
runtime/src/gfx10_descriptors.h(+4 -0)📝
runtime/src/vulkan_replay.h(+8 -1)📝
runtime/test/d3d12_clear_formats_test.cpp(+2 -0)📝
runtime/test/d3d12_descriptor_test.cpp(+53 -7)📝
runtime/test/d3d12_draw_test.cpp(+113 -0)📝
runtime/test/gfx10_descriptors_test.cpp(+20 -1)📝
runtime/test/vk_test_device.h(+29 -0)📄 Description
Claimed in #14 as
RT-A8-TARGET. Independent of my other open pull requests: it is based onmainalone and touches the Vulkan layer, not the proxy.What and why
The retail title's first native pipelines name an A8_UNORM render target, and it sizes one at 3840 x 2160 through device slot 25.
mainstores every A8_UNORM texture as R8_UNORM and refuses it as a render target: the log saysGetResourceAllocationInfo format not supported yet: 65, slot 25 answersUINT64_MAX, and a worker thread of the title stops on its ownint3.Two commits by mrp1no (
-x, authorship kept; ancestors ofmainwhose content is not in the tree):67950a8d5: where the GPU hasVK_KHR_maintenance5and can sampleVK_FORMAT_A8_UNORM_KHRand blend it as a colour attachment, an A8_UNORM texture created withALLOW_RENDER_TARGETis stored in that format; its views, the format support answers and the copy paths follow. Other A8_UNORM textures stay R8_UNORM, and a device without the format refuses A8 render targets as before.18b0bfbaf: an A8 render target's castable list takes its own format and refuses the others.The first commit conflicted in two places. In
d3d12_vulkan_device.cppit was written against the olderr9g9b9e5_as_r32_uintmember thatmainhas since replaced withuint_backed: I keptmain's member and added only the commit'sa8_as_alphanext to it, and in the render-target-view code the A8 case goes beforemain'suint_backedcases. Invk_test_device.hboth extensions are enabled.Measured
Linux (Nobara 44, kernel 7.3), Wine 11.21 staging, RTX 5070 Ti (driver 615.78.08, has
VK_KHR_maintenance5), clang-cl 22.1.8 + xwin SDK 10.0.26100, own 1.0.2.1 copy, network off. The boot runs are onmainece4ba5b3with my stacked pull requests and #142, #219, #328 and #387, because the stop is only reached that far in.--runCreatePipelineState okint3on the refused sizeSo this is what lets the title go on to create its pipelines on this path. The null call that ends the run is a queue method forwarded to the wrong PC method; that is my pull request for
RT-QUEUE-SIGNAL.Tests under Wine, the four the first commit touches:
d3d12_descriptord3d12_drawgfx10_descriptorsd3d12_clear_formatsmainunder this WineNot built with MSVC and not run on Windows, and not run on a GPU without
VK_KHR_maintenance5.AI-assisted (Claude Code); built and run on the machine above.
🤖 Generated with Claude Code
https://claude.ai/code/session_01HxBQf4pXH8PWpC5oZsM4bt
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.