gpu: mark descriptor slots on store-hook writes (#43) #659

Closed
jamal-fv wants to merge 383 commits from upstream-pr/659 into main
jamal-fv commented 2026-11-29 23:15:27 +00:00 (Migrated from github.com)

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by jamal-fv on 2026-11-29T23:15:27Z.


Refs #43

Summary

  • Track descriptor heap slots the title writes (arm lift rt_note_store + HLE memcpy) and remirror only those slots instead of rescanning bound tables.
  • Mechanism is a copied-write hook (VICTORY_STORE_SITES=1), not a PE jump patch — with VICTORY_LIFT_DIR x86 site patches would not execute.
  • Off by default; full-scan fallback every VICTORY_STORE_SITES_EVERY frames (default 8). Empty marks fail toward a full remirror.

Test plan

  • store_sites unit test
  • Steady-world VICTORY_TRACE_DESCRIPTORS=sites (run 2500) — site concentration
  • Quiet A/B: STORE_SITES off vs on — remirror/mirror/execute/wall down, counts unchanged, present pixel-identical
  • Pre-existing mirror_tests::a_description_placed_again_over_other_bytes_is_read_again_at_once not chased

Made with Cursor

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:issue:5556208584 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/659). Originally posted by [jamal-fv](https://github.com/jamal-fv) on 2026-11-29T23:15:27Z. --- Refs #43 ## Summary - Track descriptor heap slots the title writes (arm lift `rt_note_store` + HLE memcpy) and remirror only those slots instead of rescanning bound tables. - Mechanism is a copied-write hook (`VICTORY_STORE_SITES=1`), not a PE jump patch — with `VICTORY_LIFT_DIR` x86 site patches would not execute. - Off by default; full-scan fallback every `VICTORY_STORE_SITES_EVERY` frames (default 8). Empty marks fail toward a full remirror. ## Test plan - [x] `store_sites` unit test - [ ] Steady-world `VICTORY_TRACE_DESCRIPTORS=sites` (run 2500) — site concentration - [ ] Quiet A/B: `STORE_SITES` off vs on — `remirror`/`mirror`/`execute`/`wall` down, counts unchanged, present pixel-identical - [ ] Pre-existing `mirror_tests::a_description_placed_again_over_other_bytes_is_read_again_at_once` not chased Made with [Cursor](https://cursor.com)
jamal-fv commented 2026-11-30 00:35:37 +00:00 (Migrated from github.com)

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by jamal-fv on 2026-11-30T00:35:37Z.


Closing: opened without the owner's approval. The owner is asleep; no public action was authorised.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7265406908 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/659#issuecomment-7265406908). Originally posted by [jamal-fv](https://github.com/jamal-fv) on 2026-11-30T00:35:37Z. --- Closing: opened without the owner's approval. The owner is asleep; no public action was authorised.

Pull request closed

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
LakshanSivakumar/Native-Victory-macOS!659
No description provided.