[removed by author] #155

Merged
thegl0w merged 1 commit from upstream-pr/156 into main 2026-11-21 17:47:55 +00:00
thegl0w commented 2026-11-21 17:45:24 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by thegl0w on 2026-11-21T17:45:24Z.


[removed by author]

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:5430691847 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/156). Originally posted by [thegl0w](https://github.com/thegl0w) on 2026-11-21T17:45:24Z. --- [removed by author]
upstream-sync closed this pull request 2026-11-24 06:41:35 +00:00
lukaslw-lab commented 2026-11-24 06:48:27 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-11-22T07:13:40Z.


AI-assisted (Claude Code).

This answers the first "Unconfirmed" item above (what the +0x30 byte means): the BVH DLL's own messages say it means GPU memory.

XboxBvhBuilder.dll with SHA-256 99f803ac22c01ef329dddb1d40be67238d2a812d01e8d040b3cb5135bc23707e (the pinned hash). RVAs are relative to the image base.

How it was checked: static disassembly in IDA 9.1, no execution. To repeat it, follow the cross-references from the XMemVirtualQuery import and from the four message strings (0xccf20, 0xccf80, 0xcd010, 0xcd060). Each failed check in a path branches to the one string load that path uses.

All four calls are in one function (0x19bb0). Its only caller is XboxBvhBuilder::ValidateRehydrateAccelerationStructureBuildDesc. In each path, every failed check leads to one message:

Call Checks Message
0x19c69 source +0x30 & 3, MEM_COMMIT, Protect & 6 "…point to CPU-readable memory"
0x19ccb destination +0x30 & 3, MEM_COMMIT "…must point to GPU memory"
0x19d9d index buffer +0x30 & 3, MEM_COMMIT "…must point to GPU-readable memory"
0x19df9 vertex buffer +0x30 & 3, MEM_COMMIT "…must point to GPU-readable memory"
  • The destination, index and vertex paths check only +0x30 and commit, and their messages ask for GPU memory. So the +0x30 test means GPU memory, which matches era_query's current policy. No code change is needed.
  • In the source path, "CPU-readable" comes from the extra Protect & 6 check: a rehydration source is read by the CPU. xcl's "CPU-readable" interpretation quotes that message (credit to xcl for the string).
  • The DLL never reads individual values of the field, so it can't show what each of bits 0–1 means.

Suggested docs/experiments.md addition to the era_query section: "the BVH DLL's diagnostics identify the +0x30 test as a GPU-memory requirement (the table above)". Also, the XMemVirtualQuery function page on docs.xbox.com is public; only the result structure's page is restricted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7075788167 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/156#issuecomment-7075788167). Originally posted by [lukaslw-lab](https://github.com/lukaslw-lab) on 2026-11-22T07:13:40Z. --- _AI-assisted (Claude Code)._ This answers the first "Unconfirmed" item above (what the `+0x30` byte means): **the BVH DLL's own messages say it means GPU memory.** `XboxBvhBuilder.dll` with SHA-256 `99f803ac22c01ef329dddb1d40be67238d2a812d01e8d040b3cb5135bc23707e` (the pinned hash). RVAs are relative to the image base. How it was checked: static disassembly in IDA 9.1, no execution. To repeat it, follow the cross-references from the `XMemVirtualQuery` import and from the four message strings (`0xccf20`, `0xccf80`, `0xcd010`, `0xcd060`). Each failed check in a path branches to the one string load that path uses. All four calls are in one function (`0x19bb0`). Its only caller is `XboxBvhBuilder::ValidateRehydrateAccelerationStructureBuildDesc`. In each path, every failed check leads to one message: | Call | Checks | Message | |---|---|---| | `0x19c69` source | `+0x30 & 3`, `MEM_COMMIT`, `Protect & 6` | "…point to CPU-readable memory" | | `0x19ccb` destination | `+0x30 & 3`, `MEM_COMMIT` | "…must point to GPU memory" | | `0x19d9d` index buffer | `+0x30 & 3`, `MEM_COMMIT` | "…must point to GPU-readable memory" | | `0x19df9` vertex buffer | `+0x30 & 3`, `MEM_COMMIT` | "…must point to GPU-readable memory" | - The destination, index and vertex paths check only `+0x30` and commit, and their messages ask for GPU memory. So the `+0x30` test means GPU memory, which matches `era_query`'s current policy. No code change is needed. - In the source path, "CPU-readable" comes from the extra `Protect & 6` check: a rehydration source is read by the CPU. xcl's "CPU-readable" interpretation quotes that message (credit to xcl for the string). - The DLL never reads individual values of the field, so it can't show what each of bits 0–1 means. Suggested `docs/experiments.md` addition to the `era_query` section: "the BVH DLL's diagnostics identify the `+0x30` test as a GPU-memory requirement (the table above)". Also, the `XMemVirtualQuery` function page on docs.xbox.com is public; only the result structure's page is restricted.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
R0Y00/Xbox2Windows!155
No description provided.