mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:50:51 +01:00
[PR #1827] [MERGED] d3d12: title images use the staged upload on a device without host image copies (RT-TITLE-STAGED-NO-HOST-COPY) #1840
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#1840
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/1827
Author: @DadaCap
Created: 11/25/2026
Status: ✅ Merged
Merged: 11/25/2026
Merged by: @aslan2142
Base:
main← Head:title-staged-no-host-copy📝 Commits (1)
ea6d535d3d12: title images use the staged upload on a device without host image copies (RT-TITLE-STAGED-NO-HOST-COPY)📊 Changes
3 files changed (+24 additions, -5 deletions)
View changed files
📝
docs/d3d12_vulkan.md(+4 -1)📝
runtime/shims/d3d12_vulkan_device.cpp(+11 -4)📝
runtime/test/d3d12_existing_heap_test.cpp(+9 -0)📄 Description
RT-TITLE-STAGED-NO-HOST-COPY, claimed and found in #1608.
What
A title image (a streamed or placed texture of the title's) is filled from the title's memory by one of two paths: a host image copy, or the staged upload (
TitleImageUpload).create_texturechose the staged path only for an image that could have used host copies (host_transfer_). WithoutVK_EXT_host_image_copyan image got neither:fill_title_texturereturned early becausehost_copy_now()is false, and the texture stayed zero for the whole run.Now, on a device without host copies, colour title images take the staged upload, linear placements (the movie planes) included. Devices with host copies behave as before. There is no memory type to compare with in this case, so any type the image allows is accepted.
Why
107844 changed, 0.0 MiB filled.host_image_copyoff a usable diagnostic (#1810), as QemmHD's runs suggest host image copies are involved in the world-start WRITE_INVALID. With this change and host copies off, the movie shows and a retail boot reached the first world frame (136 draws, 11,525 indirect draws, 2,118 dispatches) with no type 2 fault; the device is then lost at another place (details in #1608, n=1).This pull request does not turn host copies off for anyone.
Tests
d3d12_existing_heap_test: the mapped plane and mapped BC array cases also run on a device made without host copies. Negative check: without the change tod3d12_vulkan_device.cppthe test fails.main0d80bc5df:d3d12_existing_heap(and its two write-watch variants),d3d12_vulkan_device,d3d12_xmem_placed,d3d12_subresource_copy,d3d12_m2_texturedpass.ctestset, other GPUs, Linux.AI-assisted (Claude Code).
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.