Files
reims-util/kext/sources.sha256
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

6 lines
408 B
Plaintext

3ec63afddb95abf8466806bbc82f04ce72700c7f10342fa99159aaae6c08a2b8 Makefile
3d8e398c438d167642e4b049c1fd70e21e7d2a6717139137bebbac7644cc8d4c src/Info.plist
2c4fc9ce88267a7a5cd655304ba018ecf74280232eebfbf079ec79df870434f8 src/ReimsVgpu.cpp
fe381ec5d40012a54dcbcc171a35ed9680650fb7e65334221a45ee80dff74077 src/UserPatch.cpp
d60b1464920b628f5033a9ddd50de385e3d5e2ccdcb83db114ed621944e94402 src/UserPatch.hpp