Files
reims-util/kext/ReimsVgpu.kext/Contents/MacOS/ReimsVgpu
T
Anees Iqbal b302389a95 🐛 Send x86-64 textures' swizzles to the host
The x86-64 AppleParavirtGPUMetal plugin's -[PGSerializer
supportsSwizzledTextures] and -[PGSerializer supportsTextureDescriptor2]
read flags nothing in that plugin sets (the arm64 plugin sets them from the
guest's features), so both answer NO. Every texture then goes to the host in
the first descriptor form, which has no swizzle and 8 bits of usage, and a
texture made with a swizzle reads unswizzled. macOS 26's Clear and Tinted
icon styles draw their glyphs from RG8Unorm luminance-alpha textures
swizzled (R, R, R, G); unswizzled they read (L, A, 0, 1), and the white
glyphs come out yellow.

Version 245, which the kext negotiates, has both features, and the host
reads the second forms at any version. A third UserPatch makes both getters
answer YES, so the plugin sends every texture in the second form, as the
arm64 plugin does. In an x86-64 macOS 26 guest on a reims-vgpu Vulkan host,
an RG8Unorm texture swizzled (R, R, R, G), over an 'LA08' surface or of its
own, now samples (0.2, 0.2, 0.2, 0.4) as Metal does, not (0.2, 0.4, 0, 1),
and Clear and Tinted draw their glyphs white.

A swizzled texture view still reads unswizzled: the plugin serializes every
view without its swizzle, and sending it needs new code, not a getter.
2026-10-16 16:14:46 +03:00

36 KiB
Executable File