Commit Graph
1 Commits
Author SHA1 Message Date
Anees Iqbal 85e377cc18 🔍 Audit which Metal protocol members the bundle's classes answer
-Wprotocol cannot see the device's category split or the IOGPU base class,
so its count of unanswered members misleads for RgfxMetalDevice. A process
crashes with an unrecognized selector when it calls any member that nothing
answers.

protocol_audit walks every Rgfx* class's MTL* protocols at run time. For
each instance member, required and optional, it checks the class and its
superclasses. It prints each member that nothing answers (MISSING), and
each member answered only by a base class that is not ours (SUPER), with
the class that defines it. It runs on the guest after Metal has loaded the
bundle. On the Mac it runs under Rosetta against the built x86_64 bundle
(arch -x86_64 protocol_audit build/reims-graphics.bundle).
2026-11-05 21:58:31 -08:00