Files
reims-vgpu/guest/rgfxgate/src/RgfxGatePrefs.hpp
T
Anees Iqbal 1645d94f5c 🆕 Keep AppleGVA's AMD routing key set at every boot
AppleGVA hands VideoToolbox's hardware sessions to the AMD vendor driver, the
one our accelerator answers as, only on a Mac without an Intel GPU or where
com.apple.AppleGVA's gvaForceAMDKE is set; an iMac20,1 has none, so without
the key the guest's hardware video never reaches our bundle. RgfxGate's
install thread now sets it after the bundle step, at every normal boot: an
absent /Library/Preferences/com.apple.AppleGVA.plist gets a fresh XML plist,
an XML plist gets the key true with every other byte kept, and a binary or
unreadable one is logged and left. The edit is parsed back with the kernel's
XML parser, and written only where it reads as the old dict with the key
true. It has its own source file, so the install thread's other work is
unchanged.

Checked on the guest: the file was made at a fresh disk's first boot, and
AppleGVA routed H.264 decode to our driver from it.
2026-11-05 21:59:22 -08:00

13 lines
454 B
C++

// RgfxGate's AppleGVA preference (RgfxGatePrefs.cpp): gvaForceAMDKE kept true
// in /Library/Preferences/com.apple.AppleGVA.plist, so VideoToolbox's hardware
// sessions reach our bundle's video driver.
#pragma once
namespace rgfxgate {
// Run on the install thread once the Data volume is up, every boot: sets the
// key where the file lacks it (rgfx_gva_pref.h). No-op in the installer/Recovery.
void keepVideoPreference();
} // namespace rgfxgate