mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 21:45:54 +01:00
[PR #2091] RT-MAP-READBACK-RANGE: skip GPU readback for write-only texture maps #2098
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#2098
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/2091
Author: @lixonik
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:fix/map-readback-range📝 Commits (1)
7ea8728d3d12: skip placed texture readback for empty Map ranges📊 Changes
3 files changed (+51 additions, -2 deletions)
View changed files
📝
runtime/CMakeLists.txt(+2 -0)📝
runtime/shims/d3d12_vulkan_device.cpp(+1 -1)📝
runtime/test/d3d12_existing_heap_test.cpp(+48 -1)📄 Description
Claimed as
RT-MAP-READBACK-RANGEin the coordination thread.With
LEONIDA_MAP_READBACK=1,Mapon an eligible title-placed texture could wait for a GPU copy and overwrite the CPU backing even when the caller declared it would read no bytes. Skip that copy whenEnd <= Begin. A null range and a nonempty range still read back, as specified by ID3D12Resource::Map.The new CTest uses a synthetic 1x1 RGBA32F render target and distinct CPU and GPU texels. It checks empty, inverted, nonempty and null ranges. The old implementation failed because the empty range overwrote the CPU texel. The fix passed all four cases and all five existing-heap/placement CTests on native Windows with a GeForce RTX 5070 and NVIDIA driver 610.88. The full translator semantic suite passed (491 files, 6,285 tests).
The reported retail exposure path was not exercised in this run.
AI-assisted.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.