Files
reims-vgpu/docs/graphics-kext
Anees Iqbal a5c9010efc 🆕 Answer each format's own minimum linear texture alignment
The device answered minimumLinearTextureAlignmentForPixelFormat: with
linearTextureAlignmentBytes, the largest of every format's, for each format. On
a host GPU whose linear images ask more of larger texels that is too much for
the smaller ones: a Radeon RX 550 answers 256 bytes for texels of 1 to 4 bytes,
512 for 8 and 1024 for 16, and Geekbench's MPSImageGaussianBlur source, an
RGBA8Unorm texture over a buffer with rows of 7680 bytes, was nil against 1024.

What the guest observes changes:
- each format answer of the device info carries the runtime's alignment of
  that format in its last two bytes (0x3e, `linear_alignment`, which were
  zero): 0 where the runtime has none (compressed, depth and stencil formats)
  or one past 65535;
- the bundle answers minimumLinearTextureAlignmentForPixelFormat: with the
  format's own, and with linearTextureAlignmentBytes where the blob has none,
  so the video output planes align to R8/RG8/R16/RG16's own answers too;
- linearTextureAlignmentBytes and deviceLinearTextureAlignmentBytes stay the
  largest of every format's.
2026-11-12 09:19:28 -08:00
..