Give a render target in place over host pages the storage usage its snapshot reads fetch through
On the Iris Xe (m3-max-4845, the self_reads lane, a 3662x2039 BGRA8 surface over host pages, 30 pairs of a 600x400 draw, a render-target barrier and a draw reading the target at its own pixel), a surface in place (557d9f0905) split every reading draw: 30 splits a frame, 30 copies of the whole surface into the reader's copy (224M texels copied in), 22.4 and 27.2 ms of GPU a frame, where its shadow took the snapshot (cut A, 60b9a69d39): 30 snapshotted draws, no split, 4.7 and 4.3 ms. The in-place image took the feedback loop usage (aliases 1) but not the storage usage, which a snapshot's fetch of the attachment in the pixel interlock reads through (RenderLowering::keeps_own_attachment), so snapshot_wanted fell back to the split: the image was the texture's declared plan's, where a shadow takes undeclared usages (with_undeclared_usage). A texture over host pages that renders, in place, now takes the storage usage too (framebuffer_fetch::storage_candidate over the feedback loop plan, with the view in another format a fetch stores through where the device needs one: ANV's RGBA twin of a BGRA format) where the device's check passed for a shader's writes over the pages' class and the texel is one the check's kernel stores (4, 8 or 16 bytes): with that usage a shader writes the texels in place, which the check's writes cover. Tried first, then the feedback loop plan, then the declared plan: the first the device makes the image in place with. Elsewhere its readers split as before. A rebind asks the writes verdict of an image with storage usage already. Tests: tests::in_place_storage (new, device): a render target in place over host pages has the storage usage only where the check passed for writes there, with the feedback loop usage and a fetch through storage. runtime_lane::snapshot_reads::a_surfaces_readers_take_the_snapshot_at_any_area expects a snapshot for an image in place only where it took the storage usage (Pointer writes: Passed), as for a shadow. Docs: in_place_image.rs (its usage), API.md (textures over host pages in place), FAST-PATHS.md (the attachment-read row: images over host pages, and the shadow only where a texture is one). Verified: cargo fmt; the build, clippy, lavapipe and the Iris A/B and snapshot lane follow in the tip's evidence. (cherry picked from commit e4d61153702293e23bd874cf0830ff22d6be307a)
This commit is contained in:
1 parent
402d4a5f76
commit
eb6c13f52b
7 files changed
+137
-24
No files matched your search
+5
-2
@@ -331,8 +331,11 @@ from `VK_QUEUE_FAMILY_FOREIGN_EXT`) wherever the device makes such an image and
|
||||
passed for that kind of pages and each of its accesses (`WorkCounts::host_textures_in_place`,
|
||||
`dma_buf_textures_in_place`, `fresh_page_textures_in_place`, and `host_textures_in_place_written`
|
||||
for one a shader writes), on a discrete GPU as on any other. A texture that renders takes the
|
||||
feedback loop usage where the device makes the image with it, so a draw that reads it after a
|
||||
render-target barrier reads it through a snapshot (`WorkCounts::feedback_loop_alias_images`). The
|
||||
feedback loop usage where the device makes the image with it, and the storage usage too where the
|
||||
check passed for a shader's writes over that kind of pages and its texels are of 4, 8 or 16 bytes
|
||||
(with it a shader writes the texels in place, as one declared to), so a draw that reads it after
|
||||
a render-target barrier reads it through a snapshot (`WorkCounts::feedback_loop_alias_images`);
|
||||
without the storage usage such a draw splits its pass. The
|
||||
check makes such images of every texel size, small and 3840x2160, over each kind of pages while a
|
||||
CPU thread writes beside their texels, and passes a kind only where every first move kept every
|
||||
byte; for a texture that renders it checks images made with `RenderTarget` usage apart, through
|
||||
|
||||
Reference in new issue
Block a user