runtime: test every graphics memory type at the granularity boundary #359

Merged
grahamster2 merged 1 commit from upstream-pr/365 into main 2026-11-22 02:38:35 +00:00
grahamster2 commented 2026-11-21 23:28:36 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by grahamster2 on 2026-11-21T23:28:36Z.


Advances the README "Windows runtime" row: a source-built allocation case with a measurable Windows result.

What

New era_heap_graphics_types scenario. Graphics memory types 1–6 × page sizes 4 KB/64 KB × alignment exponents 0/4/8/16 × sizes 1 and granularity+1. Each block must start on the allocation granularity, be zeroed and writable, and be reported by VirtualQuery as the base of its own committed private read/write allocation; after release_with_attributes it must be MEM_FREE. Negative controls per type: 4 MB pages, exponent 17 and page size 3 return null. Exponent 16 checks the 64 KiB boundary itself.

Before this, only type 5 (the AMD word) had a positive graphics test.

Evidence

Commit: bab6fdb, Windows 11 Pro build 26200, VS Build Tools 2026 18.3 (MSVC 19.50.35725), Windows SDK 10.0.26100.

ctest --preset dev --no-tests=error -R '^(era_heap_|docs_links$)' -V
graphics_served=96 graphics_rejected=18 granularity=65536
100% tests passed, 0 tests failed out of 9

Full suite at the same commit (excluding the three tests/intake cases): 144 run, 0 failed, 3 capability skips (bvh_wave64_hardware on RTX 3080 lane range 32..32; bvh_wave64_warp and wave_shuffle_warp on WARP lane range 4..4).

Mutation checks on src/era_heap.cpp (reverted, not part of this PR):

  • > → >= at the granularity comparison: era_heap_graphics_types fails (type 1, exponent 16 refused); era_heap_observed_words also fails.
  • graphics_last 6 → 5: only era_heap_graphics_types fails (type 6 refused).

Scope

Desktop policy only. The console semantics of the graphics types stay open in #126.

🤖 Generated with Claude Code

AI-assisted (Claude Code).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6535781414 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/365). Originally posted by [grahamster2](https://github.com/grahamster2) on 2026-11-21T23:28:36Z. --- Advances the README "Windows runtime" row: a source-built allocation case with a measurable Windows result. ## What New `era_heap_graphics_types` scenario. Graphics memory types 1–6 × page sizes 4 KB/64 KB × alignment exponents 0/4/8/16 × sizes 1 and granularity+1. Each block must start on the allocation granularity, be zeroed and writable, and be reported by `VirtualQuery` as the base of its own committed private read/write allocation; after `release_with_attributes` it must be `MEM_FREE`. Negative controls per type: 4 MB pages, exponent 17 and page size 3 return null. Exponent 16 checks the 64 KiB boundary itself. Before this, only type 5 (the AMD word) had a positive graphics test. ## Evidence Commit: `bab6fdb`, Windows 11 Pro build 26200, VS Build Tools 2026 18.3 (MSVC 19.50.35725), Windows SDK 10.0.26100. ctest --preset dev --no-tests=error -R '^(era_heap_|docs_links$)' -V graphics_served=96 graphics_rejected=18 granularity=65536 100% tests passed, 0 tests failed out of 9 Full suite at the same commit (excluding the three `tests/intake` cases): 144 run, 0 failed, 3 capability skips (`bvh_wave64_hardware` on RTX 3080 lane range 32..32; `bvh_wave64_warp` and `wave_shuffle_warp` on WARP lane range 4..4). Mutation checks on `src/era_heap.cpp` (reverted, not part of this PR): - `>` → `>=` at the granularity comparison: `era_heap_graphics_types` fails (type 1, exponent 16 refused); `era_heap_observed_words` also fails. - `graphics_last` 6 → 5: only `era_heap_graphics_types` fails (type 6 refused). ## Scope Desktop policy only. The console semantics of the graphics types stay open in #126. 🤖 Generated with [Claude Code](https://claude.com/claude-code) _AI-assisted (Claude Code)._
upstream-sync closed this pull request 2026-11-24 06:42:39 +00:00
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!359
No description provided.