Files
reims-vgpu/docs
Anees Iqbal d3fa8fe257 🐛 Give a texture over a drawn plane in another format its own shape
On Windows a video cache's planes are rt's imports of the Direct3D 11 textures
the host's video draws its pictures into, and since metal2vulkan b68b31b54a rt
imports each with no view format but the texture's element format, the plane
image's and that one's sRGB sibling. A guest texture over such a plane in any
other format of the texel's size (an R8Uint over the luma plane, say) asked rt
for a view it refuses.

Such a texture now takes the storage shape of its extent, an image of its own
that rule 1 and the fills keep current with the plane, as a texture over a
plain shape in another format already does, so rt is never asked that view. A
texture in the plane's format or its sRGB sibling is a view of the plane, as
before. The guest sees the same pixels: the other-format case is a counted
copy where rt would refuse the view, counted in the degradation counts line as
rt-shape-drawn-format-storage-<plane format>-as-<texture format>, the first of
each pair logged, and in the shapes line. Hosts other than Windows make no
drawn planes and see no change.

The plane shapes a surface over Direct3D 11 textures adds are marked drawn
(ShapeTable::insert_drawn_plane), which the decoder asks of the shape it found
(Caches::drawn_plane). docs/video/bugs.md D26 records the copy as a known gap.
2026-11-23 21:41:42 -08:00
..