Files
metal2vulkan/crates
Anees Iqbal 12fa641450 Tests: a surface plane over declared padding follows its placement answer where the driver refuses the pitch
What: tests::padding_unobserved's surface plane leg asks
Buffer::texture_placement_with_iosurface_plane before making each texture. A
declared plane is the DRM_FORMAT_MOD_LINEAR image at the pitch exactly where the
query answers NotHostPages; elsewhere it must be a shadow the device refused
(Shadow(Refused(_))), never one of the check's verdicts. Undeclared, a shadow as
before. The answer is printed.

Why: the leg skipped only devices that make no modifier images, so it assumed
every other driver takes a DRM_FORMAT_MOD_LINEAR plane with rows 416 bytes
apart. RADV refuses it: on the XTX and the 780M (pin 82 legs at 86ecc71b54) the
notice reads "the driver refuses a DRM_FORMAT_MOD_LINEAR image for the
runtime's own memory with rows 416 bytes apart
(ERROR_INVALID_DRM_FORMAT_MODIFIER_PLANE_LAYOUT_EXT)", and its own linear image
lays the rows 512 apart, so the texture is a shadow, the device's honest
answer, and the leg failed (false, 0) against (true, 1).

Verified: XTX, 780M and lavapipe runs of the leg (jobs in the lane's report).
2026-11-13 21:29:42 -08:00
..