upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/tests/test_run_gpu_tests_python_assembler.py
diff options
context:
space:
mode:
authorDadaCap <167002618+DadaCap@users.noreply.github.com>2026-11-27 16:37:45 +0100
committerDadaCap <167002618+DadaCap@users.noreply.github.com>2026-11-27 16:38:53 +0100
commit4392670a76dd0b84fbe7f8441f7e3032d350489f (patch)
tree85feb1ea3a481f69044317e3a2764ce0b2c6c1c4 /tests/test_run_gpu_tests_python_assembler.py
parent7afb87266f6a5f692f9b68aaf49da2cf17eacfb7 (diff)
d3d12: a freed window's last bytes reach the live copies too (RT-TITLE-WINDOW-RETIRE)
retire_orphan_windows frees the retired windows whose submissions have completed after this submission's refresh_shadows, and freeing writes the window's copy back to the title's pages once more (free_retired_shadow). The refresh had already copied those pages to the live copies, so the slot-133 buffer that replaced the window read the older bytes until the next submission. Moving the free ahead of the refresh, as suggested, is not enough on its own: the write-back opens the pages it writes, and the refresh's own copy back of the live copies' batches (write_back_titles) then takes those pages for ones the title wrote and drops the buffer's GPU results there (measured with this test: with the free moved first, the words written through the buffer did not all reach the pages). So the free stays after the refresh, and a retired copy's bytes that go back are written into every other copy over them that still held the title's older bytes, as the next refresh would; a copy that changed a byte keeps its own. Under lock_, in place, no allocation. The epoch/ticket gating (src/command_list_epochs.h, stamp_retired_windows) is untouched. d3d12_title_va_test --window-orphans: the submission that frees the window reads the held words through the buffer placed over the ring. With LEONIDA_TITLE_WRITEBACK=0 (d3d12_title_window_orphans_free) it read 0 of 64 before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Gt9hwNPurxyJ9LAfUbNiYr
Diffstat (limited to 'tests/test_run_gpu_tests_python_assembler.py')
0 files changed, 0 insertions, 0 deletions