RUNTIME 2276: read twins serve draw and dispatch slots that only read a bit-24 buffer or a texture over one
Steps 1b and 2 of the in-place read-only (bit-24) no-copy buffers on Linux: a slot that only reads such a buffer, or a texture over one, reads the pages in place through read twins instead of the buffer's copy. - Texture slot: takes the texture's twin (a runtime texture over the buffer's twin, made with the program's texture where it lies in place) when every use the plan lists reads, as a sampled or storage image; every descriptor of the slot is that image; the slot is not snapshot, narrowed or attached; and the twin needs no usage shadow. - Buffer slot: takes the buffer's twin when the command reaches no memory through a root table, every use reads (storage or uniform), no descriptor of the slot is a vertex buffer, and the twin starts at the buffer's base. - After a command in the same command buffer may have written the buffer, both read the copy. - The write guard also covers note_reaching, note_draw and note_moved. - Fixed on the way: the texture slot proof refused every command binding a second texture (another slot's image descriptor answered "not this slot's image" instead of "not this slot"). - WorkCounts: read_twin_textures_made, read_twin_textures_not_in_place, read_twin_slot_reads. cfg(test)-only switches read_twin_unguarded / read_twin_unproven; the guard is unconditional otherwise. No new Degradation kind. - docs: FAST-PATHS row and API.md copied host pages, in place; api_signatures.tsv (+3). Verified (roip): lavapipe m3-max-28746 at c2e1c21d55: read_twin_device, copied_device, host_ram_copy_device 66/66 (kernel 64x64 texture and buffer-slot reads through twins, draw sampling, texture and buffer negative controls fail as they should, 3648x2038 screen not in place on lavapipe and read as before). RTX 5080 at b05d4de30e (same product code): 65/66, the one failure a wrong test check since removed; screen texture twin in place, draw and kernel reads of 3648x2038 compare equal. The 5080 run at the tip, clippy and the suites run after landing.
This commit is contained in:
1 parent
dc59fb1ac6
commit
89a50bb41b
16 files changed
+1241
-61
No files matched your search
+12
-8
@@ -3708,14 +3708,18 @@ bound.
|
||||
them (`read_twins_made`), where they import in place and the device's policy contains every
|
||||
access (no twin otherwise: `read_twins_unimported`, `read_twins_uncontained`), while no earlier
|
||||
command of its command buffer may have written the buffer (`read_twin_blit_reads`; after one,
|
||||
`read_twin_reads_after_writes`, the copy); no command writes the twin, and one that would fails
|
||||
its command buffer (`read_twin_writes_refused`). On macOS the pages are imported through a
|
||||
read-only view of them. A
|
||||
buffer's or heap's rebind is copied the same way,
|
||||
its heap's bound textures and its images in place made again over the copy, and a buffer's
|
||||
rebind to bytes at another offset in their page under a texture planned at the old one is a copy
|
||||
laid out there (the detail says which). A buffer made over exactly the bytes (the same first
|
||||
byte and length) a live copied buffer was made over, of either storage mode, lies in its copy,
|
||||
`read_twin_reads_after_writes`, the copy). So does a texture slot of an encoder's own draw or
|
||||
dispatch that only reads a texture over the buffer's rows, through the texture's read twin over
|
||||
the twin's bytes, made with it where it lies in place (`read_twin_textures_made`,
|
||||
`read_twin_textures_not_in_place`, `read_twin_slot_reads`), and a buffer slot of such a draw or
|
||||
dispatch that only reads the buffer, of a command that reaches no memory through a root table
|
||||
(`read_twin_slot_reads`). No command writes a twin, and one that would fails its command buffer
|
||||
(`read_twin_writes_refused`). On macOS the pages are imported through a read-only view of them.
|
||||
A buffer's or heap's rebind is copied the same way, its heap's bound textures and its images in
|
||||
place made again over the copy, and a buffer's rebind to bytes at another offset in their page
|
||||
under a texture planned at the old one is a copy laid out there (the detail says which). A
|
||||
buffer made over exactly the bytes (the same first byte and length) a live copied buffer was
|
||||
made over, of either storage mode, lies in its copy,
|
||||
as one over a live import's bytes lies in that import, and makes no copy of its own
|
||||
(`copied_host_buffers_shared`, the gate not asked; announced, the detail saying it lies in the
|
||||
live copy): one memory, ordered as one resource's
|
||||
|
||||
Reference in new issue
Block a user