mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 21:55:52 +01:00
[PR #602] [CLOSED] d3d12: A8_UNORM textures in 1D and 3D, again; the retail frame loop then runs for minutes (RT-A8-DIMENSIONS) #644
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#644
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/602
Author: @Mumogg
Created: 11/24/2026
Status: ❌ Closed
Base:
main← Head:a8-dimensions📝 Commits (3)
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 others348dff3d3d12: A8_UNORM textures in 1D and 3D, as the host makes them📊 Changes
12 files changed (+562 additions, -24 deletions)
View changed files
📝
docs/d3d12_vulkan.md(+10 -2)📝
runtime/CMakeLists.txt(+7 -0)📝
runtime/shims/d3d12_com.h(+3 -0)📝
runtime/shims/d3d12_vulkan_device.cpp(+80 -13)📝
runtime/src/gfx10_descriptors.h(+4 -0)📝
runtime/src/vulkan_replay.h(+8 -1)➕
runtime/test/d3d12_a8_dimensions_test.cpp(+233 -0)📝
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-DIMENSIONS. Depends on: #428 (its two commits come first here; this pull request is the last commit). Independent of my stacked proxy pull requests.What and why
The third description that device slot 25 refuses on the retail boot (after #427's and #428's) is a 1D A8_UNORM texture, 128 x 1, no flags.
mainonly accepts A8_UNORM in 2D, so the log saysGetResourceAllocationInfo format not supported yet: 65, slot 25 answersUINT64_MAX, and a worker thread of the title stops on itsint3; a few seconds later the title's crash reporting ends the process (the 30 s exit I corrected in #432).Commit
952be9b04by NiiRoZz (old PR 7755;-x, authorship kept; an ancestor ofmainwhose content is not in the tree): an A8_UNORM texture is an R8_UNORM image in 1D and 3D too, as the host makes all three, withd3d12_a8_dimensions_test.The one conflict is with #428, which the commit predates: resolved as the original integration merge (
a5c96e0dd) did. A 2D render target staysVK_FORMAT_A8_UNORM_KHR; every other A8 texture, in any dimension, is R8_UNORM; a render target that is not 2D is refused. The commit message says so.Measured
Linux (Nobara 44, kernel 7.3), Wine 11.21 staging, RTX 5070 Ti (driver 615.78.08), clang-cl 22.1.8 + xwin SDK 10.0.26100, own 1.0.2.1 copy, network off, 300 s allowed, on
mainece4ba5b3with my stacked pull requests up to #432 and #142, #219, #328, #387.--runint3, then the title's crash reportingCreatePipelineStateokExecuteCommandListsokXboxPresentation::PresentXokAbout the end of the long run, since I got this wrong once already: I read the exit line this time. Exit 137 is a kill, and the system journal for that run says
The kernel OOM killer killed some processes in this unitwith a 52 GB memory peak, which is the cap I set (MemoryMax=52G). The integration branch (#321) ends the same way at about the same time; there it is the NVIDIA compiler taking the title's largest compute modules. I have not confirmed that it is the same cause here.Still open on this path: the four rectangle-list pipelines (
primitive topology type not supported: 19), queue slot 31, the memory growth, and the picture, which I have not looked at.Tests under Wine:
d3d12_a8_dimensions(new with the commit)d3d12_descriptord3d12_drawNot built with MSVC and not run on Windows.
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.