mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:40:52 +01:00
[PR #461] [MERGED] xg_xs: lay out console textures and serve the texture computer (RT-XG-TEXTURE-COMPUTER) #512
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#512
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/461
Author: @oscarlosu-lab
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/25/2026
Merged by: @aslan2142
Base:
main← Head:pr/xg-texture-computer📝 Commits (1)
77f44fbxg_xs: lay out console textures and serve the texture computer (RT-XG-TEXTURE-COMPUTER)📊 Changes
4 files changed (+1418 additions, -93 deletions)
View changed files
📝
docs/runtime_imports.md(+13 -7)📝
runtime/shims/xg_xs.cpp(+452 -38)➕
runtime/src/console_texture_layout.h(+610 -0)📝
runtime/test/xg_xs_test.cpp(+343 -48)📄 Description
Claimed in the coordination issue as: RT-XG-TEXTURE-COMPUTER
Summary
Implements the console texture layout model and
XGCreateTextureComputer/XGSuggestSwizzleModeinruntime/shims/xg_xs.cppon top of a GFX10 texture layout model (runtime/src/console_texture_layout.h), replacing the previousE_NOTIMPLstubs:0(AddRef),1(Release),2(layout structure),6(element offsets),8(copy into subresource),9(copy from subresource), and10(64 KiB tiling), while unsupported slots log once and returnE_NOTIMPL.*outalongsideE_INVALIDARG(preserving compatibility with measured callers that ignore theHRESULT).E_NOTIMPL).Attribution
Marvisak/VIctory(GPL-3.0),crates/victory-formats/src/texture.rsandcrates/victory-hle/src/modules/xg.rsatd2a4bae1f, credited in the file headers; AMDaddrlibMIT notice preserved.Verification
cmake -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo --target gta6rt xg_xs_test) on Windows 11, MSVC 19.52 x64 (VS 2026): 0 warnings in the touched files.xg_xs_test.exe:106 checks, 0 failures(hand-checked addresses, mip tails, two-plane depth-stencil, bijection/round-trip across 10 layouts, and shim slot routing).ctest -R xg_xs:1/1 Test #50: xg_xs ... Passed (0.19 sec).python -I scripts/check_no_game_data.py&python -I tests/test_docs_links.py: PASS (16/16 OK).AI-assisted. No game files.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.