Files
reims-vgpu/docs/video
Anees Iqbal 5c91a5b507 🆕 View a video plane from a texture that writes it
A recording's colour conversion writes its NV12 (or P010) through R8Uint and
RG8Uint (R16Uint and RG16Uint) textures declaring ShaderWrite. Each took the
storage shape of its plane's extent, an image of its own beside the plane, so
rule 1 copied every write into the plane (rt-shape-order-case,
rt-shape-order-copies). The red test lays its surface out as an RTX 3090
recording boot's (m3-max-81235).

On Unix hosts a video cache's surface's planes are now asked ShaderRead |
ShaderWrite | RenderTarget | PixelFormatView (0x17, was 0x15), and a texture
over a plane whole that takes storage while declaring ShaderWrite and no use
the plane's image lacks is a view of the plane (Caches::writable_plane): no
storage shape and no order copy. Such a writer asks the surface where it comes
first. ShaderAtomic and the Unknown usage keep the storage shape, and so does
every texture of an extent whose storage shape the cache holds. The platform
picks the surface's form for that usage: in place, or rt's copy form where the
device holds no linear image for it (NVIDIA's dma-buf route); the path takes
the images rt answers and assumes neither.

The Windows drawn planes keep 0x15 under their own constant, DRAWN_USAGE:
their Direct3D 11 textures are bound RENDER_TARGET | SHADER_RESOURCE, without
UNORDERED_ACCESS, and rt refuses ShaderWrite on such an import, so a texture
that writes one keeps the storage shape and its counted copies, now ledger
line D31 in docs/video/bugs.md.

What changes for the host: the planes' usage the device asks of the
platform's exported surfaces on Unix hosts. For the guest: the same pixels,
through one image where there were two.
2026-12-02 20:05:33 -08:00
..