Skip to content

GPU: return dynamic slots only to the heap that reserved them - #40

Open
gmankab wants to merge 1 commit into
spidercraft:linux-native-runtimefrom
gmankab:contrib/linux-native-descriptor-heap-identity
Open

gmankab wants to merge 1 commit into
spidercraft:linux-native-runtimefrom
gmankab:contrib/linux-native-descriptor-heap-identity

Conversation

@gmankab

@gmankab gmankab commented Nov 26, 2026

Copy link
Copy Markdown

A command list can keep dynamic descriptor slots after the title releases the original heap. If a new heap is registered at the same title address before the list resets, the old reservation can free slots held by a different list in the replacement heap.

The Linux native backport carries the host heap identity with each reservation and checks it while holding the heap-registry lock. The regression looks up a full replacement heap using the retired identity, verifies that every slot stays reserved, then verifies that a release with the matching identity gives the slot back. It passed on the RX 6800 and Lavapipe. The integration branch also passed the existing descriptor sharing and exhaustion checks on both backends. This verifies the release path in isolation. Its role in the previous title run is unconfirmed. Fxceless source

Tested-on: RX 6800 and Lavapipe, Fedora Linux 45, Linux native
Assisted-by: gpt-6.2 sol xhigh

A recorded list can retain dynamic descriptors after the title releases
its heap. If another title heap lands at that address before list reset,
the old release can mark slots in the replacement heap as available,
even if another recorded list owns them.

Include a host heap identity in each reservation. Check it under the
heap-registry lock before returning slots. The regression passes a retired
heap identity through lookup of a full replacement heap, then verifies
that only the replacement's own identity can release a slot.

Based-on: fxceless/victory-fork#1324
Tested-on: RX 6800 and Lavapipe, Fedora Linux 45, Linux native
Assisted-by: gpt-6.2 sol xhigh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant