Files
metal2vulkan/crates
Anees Iqbal 73e7638e4c Give a tiled texture's shadow the word and unorm views of its first level
with_word_view and with_unorm_view required a one-level image, so the shadow of a
tiled texture of more than one level (Buffer::new_tiled_texture) took neither: its
merges copied the texels out instead of fetching them through the BGRA8/RGBA8
unorm view (every device), and on ANV its copies back stayed copies where a
dispatch is measured faster. Both views are of level 0 alone, and its copies are
one region of level 0, so a multi-level image takes them as a one-level one does.
The condition is now one slice. sRGB and the other formats keep copying out, as
every shadow's do (unorm_read), or take the word view where it is made.

Verified by the device tests: see the tip's evidence.

(cherry picked from commit 0d124cfc62ab10bb4be87ff5909f8602ff28db05)
2026-11-08 02:57:26 -08:00
..