diff options
| author | Sssnowyyy <78863999+Sssnowyyy@users.noreply.github.com> | 2026-11-02 11:31:05 -0500 |
|---|---|---|
| committer | Sssnowyyy <78863999+Sssnowyyy@users.noreply.github.com> | 2026-11-02 14:53:47 -0500 |
| commit | a1f781fa24cc16e6d636213a5596cfed4123f493 (patch) | |
| tree | a2a1df52ac83d8ea44544abb5a6e4dedb8cef2e3 /src/core/core_timing.cpp | |
| parent | e46c6cbfb0f6735ca35f1150338c300f3c9c18fe (diff) | |
video_core: flush GPU-written code when capturing native shaders
10e7063905 moved native program capture from one ReadBlock per instruction to
ReadBlockUnsafe per 4 KiB page. ReadBlockUnsafe skips the rasterizer flush, so
code that a GPU copy had written and not yet flushed to guest memory was
captured stale. The speed-up comes from reading a page at a time, not from
skipping the flush: read each page (and the odd single instruction outside a
fully mapped page) with ReadBlock, which flushes once per page instead of once
per instruction.
Follow-up to 10e7063905.
Assisted-by: Claude Sonnet 5.5 (implementation and commit message)
Diffstat (limited to 'src/core/core_timing.cpp')
0 files changed, 0 insertions, 0 deletions
