\ #3357
No reviewers
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!3357
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3355"
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?
@KelboLive on GitHub · 2026-11-28 13:25 UTC · original
KelboLive:fix/xmem-fresh-slot-commit→main· +142 −92 · 7 files · 5 commits · closed without mergingxmem: always commit fresh slot in section_for()
In
section_for(), when creating a new slab for a fresh page,make_slabcommits offset 0 of the slab. The original code only committed the target slot (atslot.offset) whenfirst_slot_committedwas false — which never happens becausemake_slabreturns true only after successfully committing offset 0.This left fresh slots at non-zero offsets uncommitted in non-lazy mode, causing access faults on first use. Remove the
!first_slot_committedguard so the target slot is always committed before recording it.@Leyukaka on GitHub · 2026-11-28 17:07 UTC · original · requested changes
.github/workflows/sync.ymlshould not be part of this PR. It is a fork-sync job, and nothing restricts it to forks (noif: github.repository != 'R0Y00/Xbox2Windows'). Merged here, it would run on this repository every 6 h (cron: '0 */6 * * *') withpermissions: contents: writeand end ingit push origin main --force-with-lease. Hereoriginandupstream(https://github.com/R0Y00/Xbox2Windows.git) are the same repository, so the job does nothing useful but keeps a scheduled force-push step with write access onmain. Please drop the file from the branch.@JohnConnorNPC on GitHub · 2026-11-29 13:06 UTC · original
Independent review of head
6242dd34againstmainaf1cab5c. Verdict: 4 MUST. Holding, not merging. The sync.yml point is already covered by the open change request and is not repeated here.MUST
Windows CI is red, caused by the branch itself. The configure step fails with
_add_test given test NAME "startup_gfx2hlsl_cmp_class" which already exists in this directory(CMakeLists.txt:3799).mainalready registers that test, and the branch adds it again (grep -c 'NAME startup_gfx2hlsl_cmp_class COMMAND': main 1, merged tree 2).The xmem change rests on a premise the code doesn't support. In
take_fresh()(src/xmem_slab_slots.h),make()runs only when a new slab is opened, and the slot it then hands out is at offsetfresh_used_ * slot_bytes_= 0 of that slab. Offset 0 is the onemake_slabalready committed. A slot at a non-zero offset always comes from an existing slab. In that callmake_slabdoesn't run, so the localfirst_slot_committedstaysfalseandmainalready callscommit_slot. The only effect of the change is a secondcommit_slot(a map plus commit) of offset 0 for each new slab. This is on the default xmem path.There is no test or failing case for the xmem change. If a slot really is left uncommitted, please add a fixture that faults on
mainand passes here, plus a negative control.The branch is 254 commits behind and reverts or duplicates work already on
main. On the merged tree:tests/startup_gfx2hlsl_cmp_class_f16_check.pygoes from 19 to 11check(calls. That revertsmain's3177daedand drops the e32v_cmpx_class_f16cases.gpu-report-hardware.mdis added at the repo root.Fix: rebase onto current
mainand keep only the xmem change, and only together with item 3. The title is also just\. A short description of the change would help.AI-assisted review.
@KelboLive on GitHub · 2026-11-29 16:20 UTC · original
Closing. This branch is superseded, and its one substantive change does not hold up.
startup_gfx2hlsl_cmp_classa second time, so configure fails withgiven test NAME ... which already exists in this directory.mainalready registers that test.take_fresh()(src/xmem_slab_slots.h),make()runs only when a new slab is opened, and the slot handed out then is atfresh_used_ * slot_bytes_withfresh_used_reset to 0 — offset 0 of that slab.make_slabhas already committed offset 0. A slot at a non-zero offset always comes from an existing slab, wheremake_slabdoes not run andfirst_slot_committedstays false. So!first_slot_committedis exactly the guard that prevents a second commit, and removing it adds a redundantcommit_slotof offset 0 on every new slab, on the default xmem path.v_cmpx_class_f16cases fromstartup_gfx2hlsl_cmp_class_f16_check.py, removes five report links and the Shader Model 6.5 note from the RX 9060 XT row, and adds a second RTX 4070 Ti SUPER row, a second copy of the binary32 class-comparison paragraph, andgpu-report-hardware.md. The title is also just a backslash.The clean one-line version of the xmem change was #3366, closed for the same reason.
Pull request closed