Views guarded while they are mapped stay writable; tests take turns on WARP
The runtime maps a view and then tells the write watch. A refresh on another thread could guard the new blocks in between, and the telling then forgot them and left them read-only: the title's next write to one was an access violation nobody takes. Told of a new view, the watch now gives the write access back; before an unmapping it only forgets, as before. The test binary's random crashes were d3d10warp.dll's own, with two tests on the software adapter at once: they take turns now. The watch's tests forget their guards before their memory is freed (another test's memory could get the address and inherit them), and three more are no longer tied to other tests' memory, the adapter's other work or a busy PC's timing. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
eb50022824
commit
63e18c7da0
6 files changed
+144
-32
No files matched your search
@@ -1028,7 +1028,7 @@ fn unmap(physical: &mut Physical, base: usize, len: usize) {
|
||||
continue;
|
||||
};
|
||||
physical.forget_view(at, size, &slice);
|
||||
victory_gpu::title_memory_remapped(at, size);
|
||||
victory_gpu::title_memory_unmapping(at, size);
|
||||
// SAFETY: a view we mapped; it becomes a placeholder again.
|
||||
unsafe {
|
||||
UnmapViewOfFile2(
|
||||
|
||||
Reference in new issue
Block a user