[removed by author] #126
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows#126
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?
@thegl0w on GitHub · 2026-11-21 16:40 UTC · original
[removed by author]
@R0Y00 on GitHub · 2026-11-21 17:16 UTC · original
#134 covers the desktop interpretation of the observed attribute words. Let's keep this issue open for the unverified allocator ID and graphics-memory semantics, and record those separately from the passing desktop allocation tests.
@dcastell1 on GitHub · 2026-11-21 19:01 UTC · original
Independent implementation of the same field split, for cross-reference: the TomBox continuation at
omonkeyz/xbox-emulatorhasAttrincrates/compat/xmem/src/alloc.rs(commit72affd5a) with object type 0..13, page size 14..15, allocator ID 16..23, log2 alignment 24..28 and memory type 29..32. Its testattribute_fields_match_console_decodeuses0x30804000,0x0480009eand0x150004000; page size maps 0=4 KiB, 1=64 KiB, 2..3=2 MiB, and memory types 0..12 are accepted. This corroborates the layout used in #134, but it does not settle the allocator ID or graphics-memory semantics, so it does not close this issue. The test name says the vectors come from a console decode; I have not independently verified that provenance.@legacy-code-archaeologist on GitHub · 2026-11-22 23:36 UTC · original
Source research on the two questions this issue was kept open for (allocator ID
0xE5, memory typeGRAPHICS_5). I used only publicly licensed code; no game files.Found (MIT, Microsoft):
Auxiliary/DirectXTexXboxD3D12X.cppata8e5dbf(lines 30–34) builds its default XMemAlloc attributes for texture loading asMAKE_XALLOC_ATTRIBUTES(eXALLOCAllocatorId_MiddlewareReservedMin, 0, XALLOC_MEMTYPE_GRAPHICS_WRITECOMBINE_GPU_READONLY, XALLOC_PAGESIZE_64KB, XALLOC_ALIGNMENT_64K). The same pattern appears in DirectXTK'sXboxDDSTextureLoader.cpp. So the allocator-ID field has a middleware-reserved range, and graphics memory types carry cache/GPU-visibility names such asWRITECOMBINE_GPU_READONLY.MemoryHelpersXbox.cpp(PlayFab-Samples, MIT, line 72) classifies a request as a title request whendwAllocatorIdis betweeneXALLOCAllocatorId_GameMinandeXALLOCAllocatorId_GameMax.Not found: the numeric values of these constants. No publicly licensed source I could reach gives
eXALLOCAllocatorId_GameMin/GameMax/MiddlewareReservedMinor the numbering of the namedXALLOC_MEMTYPE_GRAPHICS_*types. SlimEraera.hand WinDurangokernelx.honly have the placeholder enumGRAPHICS_1…GRAPHICS_6. Some third-party repositories carry copies of Xbox 360 SDK headers that contain such values. I did not use them: they are not publicly licensed, and they describe the older console.Consequence for this issue: whether
0xE5from the Bink caller falls into the middleware-reserved or the title range, and which named typeGRAPHICS_5is, cannot be settled from licensed public sources. That remains a hypothesis. One plausible reading is that the0xa8004000word from the AMD caller (64 KiB pages, graphics type) corresponds to a GPU-visible type like the one DirectXTex uses for textures, but that is not verified. Settling it would need a measurement, for example from the observed runtime behavior of these allocations.AI-assisted (Claude Code); GitHub code search via the authenticated API.
@triggered02 on GitHub · 2026-11-24 04:37 UTC · original
Taking a code slice on this: the scanner cannot see the
XMemAllocDefault/XMemFreeDefaultaliases.tools/xmem_attribute_scan.pyfixesTARGETS = (XMemAlloc, XMemFree), but the released entry image imports all four names, and the shim exports theDefaultpair as aliases (XMemAllocDefault=XMemAlloc @5,XMemFreeDefault=XMemFree @6). So real call sites through the aliases are invisible to the scan today.Scope:
TARGETS, keeping the recorded export name in the report so a site is not attributed to the wrong symbol.tests/cpu/xmem_attributes.asm) with a directXMemAllocDefaultcall, anXMemFreeDefaulttail jump, and acmove-guarded site (mov edx,imm32; cmp byte ptr [flag],0; cmove rdx,rbx; call) — the scanner deliberately reports that shape ascomputed, and today nothing pins that classification with a test.tests/xmem_attribute_scan_check.py, and add the observed attribute-word decode notes todocs/experiments.md.Decoding/test-only; no shim behaviour change.
Decode the full XMemAlloc attribute word observed in the Bink and AMD callersto [removed by author]