From c2ee81b6cabff9d40c8d3b6dfd45b0614f36cc6c Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Wed, 2 Dec 2026 21:25:04 -0800 Subject: [PATCH] :memo: Say what the bundle relies on, and mark Metal's unmeasured [ci skip] The bundle's comments and its members register named sources for Apple's behaviour that this public repository does not cite. A comment here cites a public header, or a probe, walk or test of ours, or states the behaviour plainly. Each such clause in guest/bundle's sources, tests and tools now states the behaviour the code relies on, keeping every measurement and probe of ours it cited. In tests/protocol_members.txt the 137 tags of that kind become "unmeasured", which its header defines: what an entry says Metal's own classes answer is owed to an oracle run on the 2019 or the M3, not passed off as measured. Every kind and %name stays, and the test reads only those. Comments and the register's text only: no code changes. --- guest/bundle/src/RgfxBinaryArchive.mm | 2 +- guest/bundle/src/RgfxBuffer.mm | 2 +- guest/bundle/src/RgfxCaps.hpp | 2 +- guest/bundle/src/RgfxCommandObjects.mm | 38 +-- guest/bundle/src/RgfxComputePipelineState.mm | 4 +- guest/bundle/src/RgfxDepthStencilState.mm | 6 +- guest/bundle/src/RgfxEvent.mm | 2 +- guest/bundle/src/RgfxFeatureProfile.hpp | 2 +- guest/bundle/src/RgfxFiles.hpp | 2 +- guest/bundle/src/RgfxFunction.h | 4 +- guest/bundle/src/RgfxFunction.mm | 6 +- guest/bundle/src/RgfxGLFunction.mm | 2 +- guest/bundle/src/RgfxHeap.mm | 8 +- guest/bundle/src/RgfxIndirectCommandBuffer.mm | 8 +- guest/bundle/src/RgfxMetalDevice+Resources.mm | 2 +- guest/bundle/src/RgfxMetalDevice.mm | 2 +- guest/bundle/src/RgfxMetalPrivate.h | 4 +- guest/bundle/src/RgfxRenderPipelineState.mm | 2 +- guest/bundle/src/RgfxSampler.mm | 2 +- guest/bundle/src/RgfxSharedEvent.mm | 2 +- guest/bundle/src/RgfxTexture.h | 4 +- guest/bundle/src/RgfxTexture.mm | 10 +- guest/bundle/src/RgfxVideoH264.hpp | 2 +- guest/bundle/src/RgfxVideoStatus.hpp | 6 +- guest/bundle/tests/files_tests.mm | 2 +- guest/bundle/tests/gl_tests.mm | 4 +- guest/bundle/tests/protocol_members.txt | 277 +++++++++--------- guest/bundle/tools/cl_probe.m | 4 +- guest/bundle/tools/gl_probe.m | 4 +- 29 files changed, 209 insertions(+), 206 deletions(-) diff --git a/guest/bundle/src/RgfxBinaryArchive.mm b/guest/bundle/src/RgfxBinaryArchive.mm index fa4fc9234..59876df4a 100644 --- a/guest/bundle/src/RgfxBinaryArchive.mm +++ b/guest/bundle/src/RgfxBinaryArchive.mm @@ -802,7 +802,7 @@ static BOOL rgfxAnyHolds(NSArray *archives, const RgfxArchiveEntry &entry) // The members of Metal's binary-archive SPI that the AMD 5300M's and the Intel 630's archives both // answer (measured with respondsToSelector:, macOS 26.7.1, tools/oracle/oracle_spi_members.m): // both are Metal's own archive, _MTLBinaryArchive (measured: their class), whose members these -// follow where the archive's entries allow (read from code, _MTLBinaryArchive, macOS 27.0.1). +// follow where the archive's entries allow (_MTLBinaryArchive, macOS 27.0.1). // The description Metal's archive gives: the object's own description, then its label and its // count of entries, each on a line of its own, indented by `indent` + 4 spaces (measured: both x86 diff --git a/guest/bundle/src/RgfxBuffer.mm b/guest/bundle/src/RgfxBuffer.mm index 74f444eaa..37958028d 100644 --- a/guest/bundle/src/RgfxBuffer.mm +++ b/guest/bundle/src/RgfxBuffer.mm @@ -1310,7 +1310,7 @@ RGFX_RESOURCE_SPI } // No surface for the Neural Engine: null, as Metal's IOAccel buffer answers, which neither x86 -// Mac's buffer overrides (read from code; measured on the AMD 5300M and the Intel 630, +// Mac's buffer overrides (measured on the AMD 5300M and the Intel 630, // %spi-answers). - (IOSurfaceRef)_aneIOSurface { diff --git a/guest/bundle/src/RgfxCaps.hpp b/guest/bundle/src/RgfxCaps.hpp index 127a01b2b..57207a381 100644 --- a/guest/bundle/src/RgfxCaps.hpp +++ b/guest/bundle/src/RgfxCaps.hpp @@ -205,7 +205,7 @@ std::string rgfxFamilyNameOf(const char *name); /// first word is "NVIDIA", "AMD", "Intel" or "Intel(R)"; "AMD" for any other. The system's GL /// renderer (AppleMetalOpenGLRenderer) picks its settings by finding "AMD" or "ATI", "NVIDIA" or /// "Intel" in the answer, else by the Apple GPU families 7 and 5, and ends every process that -/// makes a GL context on any other device ("Unknown GPU!!", read from its code; measured with the +/// makes a GL context on any other device ("Unknown GPU!!"; measured with the /// IOGPU base's "Apple" beside Mac2 alone, macOS 26.6.1): a GPU of another vendor answers the one /// the x86 Macs' discrete GPUs answer, which the renderer runs gl_cases' cases with as it does /// with the others (tools/gl_cases.m, measured: macOS 26.6.1 on an RTX 5080 host). diff --git a/guest/bundle/src/RgfxCommandObjects.mm b/guest/bundle/src/RgfxCommandObjects.mm index 5a0d41bc9..a977a34fc 100644 --- a/guest/bundle/src/RgfxCommandObjects.mm +++ b/guest/bundle/src/RgfxCommandObjects.mm @@ -893,7 +893,7 @@ static void rgfxRaiseAtNilSet(BOOL adding) [fences addObject:f]; } q->_barrierFences = fences.count == kRgfxBarrierFences ? fences : @[]; - // As Metal's base queue starts (read from code, _MTLCommandQueue, macOS 27.0.1): its + // As Metal's base queue starts (_MTLCommandQueue, macOS 27.0.1): its // process tracked for background work, its buffers run, and the quality of service of // a queue no descriptor names, 2 (measured: the AMD 5300M's and the Intel 630's queues // of newCommandQueue, macOS 26.7.1). @@ -1144,7 +1144,7 @@ static void rgfxRaiseAtNilSet(BOOL adding) // committed right behind it was scheduled at 200.7 to 210.5 ms against 0.3 to 1.3 ms, and both // commits returned in 0.03 ms). Metal's queue submits up to and including such a buffer, then // waits on a semaphore of the queue's once for each of its presents before it submits more -// (-[_MTLCommandQueue _submitAvailableCommandBuffers], read from code): the signals count, so a +// (_MTLCommandQueue): the signals count, so a // report that comes before the buffer is posted holds nothing. The held buffers stay Committed and // unposted, as behind a buffer not yet committed (ENQUEUE ORDER, above); the commits return. A // CAMetalDrawable reports once the layer's image queue has taken the present, which WindowServer @@ -1478,7 +1478,7 @@ static void rgfxRaiseAtNilSet(BOOL adding) // --- MTLCommandQueueSPI ---------------------------------------------------------------------- // The members of Metal's command-queue SPI that the AMD 5300M's and the Intel 630's queues both // answer (measured with respondsToSelector:, macOS 26.7.1, tools/oracle/oracle_spi_members.m), -// answered as Metal's base queue, _MTLCommandQueue, answers them (read from code, macOS 27.0.1); +// answered as Metal's base queue, _MTLCommandQueue, answers them (macOS 27.0.1); // the getters of a fresh queue answer what those two GPUs' queues answer (measured: // oracle_spi_members answers). @@ -3369,7 +3369,7 @@ static NSError *rgfxInvalidInputError() // CAMetalLayer's) is then the layer's next frame: its presented handlers report the refresh that // showed it, or 0 where a later frame took its place, and the layer gives it back to // nextDrawable once the display is done with it. The block keeps the drawable until it runs. -// As Metal's base buffer does (read from code, macOS 27 Metal.framework), the buffer then owes +// As Metal's base buffer does (macOS 27 Metal.framework), the buffer then owes // its queue one present-scheduled signal, which the drawable gives once its present is scheduled // (addPresentScheduledHandler:, asked of every drawable as Metal asks it): the queue posts // nothing after the buffer until then, and the buffer, as each the queue commits from now on, asks @@ -3652,7 +3652,7 @@ static NSError *rgfxInvalidInputError() #if defined(__arm64__) // An Apple GPU's command buffer's SPI, which MPSGraph's Neural Engine region op sends with no -// respondsToSelector: check (read from code, macOS 27.0.1; dgpu-oracle.md, Q45); neither x86 +// respondsToSelector: check (macOS 27.0.1; dgpu-oracle.md, Q45); neither x86 // Mac's buffers answer it (%spi-neither), so an x86-64 guest's do not. The shared event takes `value` as its queue's submission reaches the // call, where its GPU work has not begun (rgfxSetScheduledSignalsAtPost), and its value only // rises, as Metal's (measured on the M3 Max, macOS 27.0.1, oracle_cmdbuf schedsig: an event at 5 @@ -3712,7 +3712,7 @@ static NSError *rgfxInvalidInputError() // --- MTLCommandBufferSPI --------------------------------------------------------------------- // The members of Metal's command-buffer SPI that the AMD 5300M's and the Intel 630's buffers both // answer (measured with respondsToSelector:, macOS 26.7.1, tools/oracle/oracle_spi_members.m), -// answered as Metal's base command buffer answers them (read from code: _MTLCommandBuffer and +// answered as Metal's base command buffer answers them (_MTLCommandBuffer and // MTLIOAccelCommandBuffer, macOS 27.0.1); the getters of a fresh buffer answer what those two // GPUs' buffers answer (measured: oracle_spi_members answers). @@ -4061,7 +4061,7 @@ static NSError *rgfxInvalidInputError() } // A residency set of Metal's own: Metal's base buffer uses it as one of the caller's -// (useResidencySet:, useResidencySets:count:; read from code, _MTLCommandBuffer, macOS 27.0.1), +// (useResidencySet:, useResidencySets:count:; _MTLCommandBuffer, macOS 27.0.1), // which both x86 Macs' buffers answer (measured with respondsToSelector:, macOS 26.7.1, // tools/oracle/oracle_spi_members.m ask), and so does this. - (void)useInternalResidencySet:(id)residencySet @@ -5601,13 +5601,13 @@ RGFX_LOG_UNRECOGNIZED } // The depth clip mode, as setDepthClipMode: sets it: Metal's IOAccel encoder sends itself that -// (read from code, MTLIOAccelRenderCommandEncoder, macOS 27.0.1). +// (MTLIOAccelRenderCommandEncoder, macOS 27.0.1). - (void)setDepthClipModeSPI:(MTLDepthClipMode)depthClipMode { [self setDepthClipMode:depthClipMode]; } -// NO, as Metal's IOAccel encoder answers (read from code, MTLIOAccelRenderCommandEncoder, macOS +// NO, as Metal's IOAccel encoder answers (MTLIOAccelRenderCommandEncoder, macOS // 27.0.1). - (BOOL)isMemorylessRender { @@ -5623,7 +5623,7 @@ RGFX_LOG_UNRECOGNIZED } // Metal's base encoder raises an unrecognized selector for these (it sends itself -// doesNotRecognizeSelector:; read from code, _MTLCommandEncoder and MTLIOAccelRenderCommandEncoder, +// doesNotRecognizeSelector:; _MTLCommandEncoder and MTLIOAccelRenderCommandEncoder, // macOS 27.0.1), and so does this. - (void)setToolsDispatchBufferSPI:(NSUInteger)buffer atIndex:(NSUInteger)index @@ -6295,7 +6295,7 @@ RGFX_LOG_UNRECOGNIZED } // How the GPU spreads a dispatch's threadgroups over its cores: Metal's base encoder does -// nothing with either (read from code, _MTLCommandEncoder, macOS 27.0.1), and nor does this; the +// nothing with either (_MTLCommandEncoder, macOS 27.0.1), and nor does this; the // host's GPU spreads them. - (void)setThreadgroupDistributionMode:(NSInteger)mode { @@ -6307,7 +6307,7 @@ RGFX_LOG_UNRECOGNIZED } // Metal's base encoder raises an unrecognized selector for these (it sends itself -// doesNotRecognizeSelector:; read from code, _MTLCommandEncoder and MTLIOAccelComputeCommandEncoder, +// doesNotRecognizeSelector:; _MTLCommandEncoder and MTLIOAccelComputeCommandEncoder, // macOS 27.0.1), and so does this. - (void)setThreadgroupPackingDisabled:(BOOL)disabled { @@ -6712,7 +6712,7 @@ destinationBytesPerImage:(NSUInteger)destinationBytesPerImage } // Metal's base encoder raises an unrecognized selector for these (it sends itself -// doesNotRecognizeSelector:; read from code, _MTLCommandEncoder, macOS 27.0.1), and so does this. +// doesNotRecognizeSelector:; _MTLCommandEncoder, macOS 27.0.1), and so does this. - (void)invalidateCompressedTexture:(id)texture { (void)texture; @@ -6749,8 +6749,8 @@ destinationBytesPerImage:(NSUInteger)destinationBytesPerImage (void)level; [self doesNotRecognizeSelector:_cmd]; } -// The fills of Metal's IOAccel blit encoder, which both x86 Macs' encoders are (read from code, -// MTLIOAccelBlitCommandEncoder, macOS 27.0.1): a buffer's and a texture's from bytes raise an +// The fills of Metal's IOAccel blit encoder, which both x86 Macs' encoders are +// (MTLIOAccelBlitCommandEncoder, macOS 27.0.1): a buffer's and a texture's from bytes raise an // unrecognized selector (it sends itself doesNotRecognizeSelector:), and a texture's from a color // fills it from the color packed in the texture's own format, or in `pixelFormat`, which then // raises. So do these; the bytes passed on are never read. @@ -7020,7 +7020,7 @@ RGFX_LOG_UNRECOGNIZED // A sub-encoder that samples the GPU's counters into `programInfoBuffer`: Metal's base parallel // encoder asks its command buffer's sampledRenderCommandEncoderWithDescriptor:programInfoBuffer: -// capacity: for it (read from code, _MTLParallelRenderCommandEncoder, macOS 27.0.1), which +// capacity: for it (_MTLParallelRenderCommandEncoder, macOS 27.0.1), which // answers nil on the device, which samples no counters; so does this. - (nullable id)sampledRenderCommandEncoderWithProgramInfoBuffer:(void *)programInfoBuffer capacity:(NSUInteger)capacity @@ -7031,7 +7031,7 @@ RGFX_LOG_UNRECOGNIZED } // Whether each sub-encoder's work is committed on its own: NO, and a set does nothing, as Metal's -// IOAccel parallel encoder answers (read from code, MTLIOAccelParallelRenderCommandEncoder, macOS +// IOAccel parallel encoder answers (MTLIOAccelParallelRenderCommandEncoder, macOS // 27.0.1). The sub-encoders' work goes to the host in the command buffer's. - (BOOL)separateCommits { @@ -7043,7 +7043,7 @@ RGFX_LOG_UNRECOGNIZED } // Metal's base parallel encoder raises an unrecognized selector for this (it sends itself -// doesNotRecognizeSelector:; read from code, _MTLParallelRenderCommandEncoder, macOS 27.0.1), and +// doesNotRecognizeSelector:; _MTLParallelRenderCommandEncoder, macOS 27.0.1), and // so does this. - (void)insertSplit { @@ -7051,7 +7051,7 @@ RGFX_LOG_UNRECOGNIZED } // Ends the encoding and answers no program address table, as Metal's base parallel encoder does -// (read from code, _MTLParallelRenderCommandEncoder, macOS 27.0.1). +// (_MTLParallelRenderCommandEncoder, macOS 27.0.1). - (nullable id)endEncodingAndRetrieveProgramAddressTable { [self endEncoding]; diff --git a/guest/bundle/src/RgfxComputePipelineState.mm b/guest/bundle/src/RgfxComputePipelineState.mm index 3b228b33a..dc6a164fd 100644 --- a/guest/bundle/src/RgfxComputePipelineState.mm +++ b/guest/bundle/src/RgfxComputePipelineState.mm @@ -148,7 +148,7 @@ NSArray *arrayOf(id object, std::initializer_list names) /// Metal reads it when it creates the pipeline (at each creation, so a replaced file links its new /// code), and its own install names after. A name loads from its file whether or not a preloaded /// library exports what it is linked for, as Metal's creation needs it to (the runtime's -/// DynamicLibraries, read from code: measured on an M3 Max and an M4; the AMD Radeon Pro 5300M +/// DynamicLibraries, measured on an M3 Max and an M4; the AMD Radeon Pro 5300M /// refuses a kernel whose name loads nothing beside a preloaded library that exports its symbol, /// oracle_fnptr's "unresolved preloaded"). Metal loads the names of a library made from a file /// alone: a name that a library made of bytes or of source names refuses the pipeline, where its @@ -860,7 +860,7 @@ NSError *RgfxComputeProgressError(BOOL hasProgress, NSInteger progress, BOOL has // --- MTLComputePipelineStateSPI ------------------------------------------------------------ // The members of Metal's compute-pipeline SPI that the AMD 5300M's and the Intel 630's pipelines // both answer (measured with respondsToSelector:, macOS 26.7.1, tools/oracle/oracle_spi_members.m), -// each as Metal's base pipeline, _MTLComputePipelineState, answers it (read from code, macOS +// each as Metal's base pipeline, _MTLComputePipelineState, answers it (macOS // 27.0.1). // Metal's base pipeline answers gpuResourceID with gpuHandle, and gpuHandle with resourceIndex: so diff --git a/guest/bundle/src/RgfxDepthStencilState.mm b/guest/bundle/src/RgfxDepthStencilState.mm index ba61cc1d5..561abe80e 100644 --- a/guest/bundle/src/RgfxDepthStencilState.mm +++ b/guest/bundle/src/RgfxDepthStencilState.mm @@ -87,8 +87,8 @@ bool faceReadsStencil(MTLStencilDescriptor *s) return state; } -// The GL renderer's queries of the state it binds (GLDContextRec::updateRenderDepthStencil sends -// them unguarded, read from its code). The AMD 5300M's states (GFX10_MtlDepthStencilState) and +// The GL renderer's queries of the state it binds (it sends +// them unguarded). The AMD 5300M's states (GFX10_MtlDepthStencilState) and // the Intel 630's (MTLIGDepthStencilState) answer YES to each for every descriptor asked: the // default one, depth tests with and without writes, stencil tests, stencil replaces, and a // replace with a write mask of 0 (measured: macOS 26.7.1). So does this, but on an Apple GPU @@ -137,7 +137,7 @@ bool faceReadsStencil(MTLStencilDescriptor *s) } // Nor an index or an identifier: Metal's base state raises an unrecognized selector for each (it -// sends itself doesNotRecognizeSelector:; read from code, _MTLDepthStencilState, macOS 27.0.1), +// sends itself doesNotRecognizeSelector:; _MTLDepthStencilState, macOS 27.0.1), // which ends the process on both x86 Macs (measured: macOS 26.7.1, oracle_spi_members answers) and // on the M3 Max, whose state answers respondsToSelector: YES too (measured: macOS 27.0.1, // oracle_bundle Apple ds.resourceIndex and ds.uniqueIdentifier), and so does this, on every guest. diff --git a/guest/bundle/src/RgfxEvent.mm b/guest/bundle/src/RgfxEvent.mm index 380dfd61d..9b92e2693 100644 --- a/guest/bundle/src/RgfxEvent.mm +++ b/guest/bundle/src/RgfxEvent.mm @@ -59,7 +59,7 @@ // --- MTLEventSPI ---------------------------------------------------------------------- // Whether a wait on the event is a barrier: stored and answered, YES from the event's init, as -// Metal's IOAccel event, which both x86 Macs' events are, keeps it (read from code; a fresh one +// Metal's IOAccel event, which both x86 Macs' events are, keeps it (a fresh one // answers YES on the AMD 5300M and the Intel 630, %spi-answers). The host's wait orders the work // after it whatever it holds. - (BOOL)enableBarrier diff --git a/guest/bundle/src/RgfxFeatureProfile.hpp b/guest/bundle/src/RgfxFeatureProfile.hpp index 7bbc97b92..4b20e9f0f 100644 --- a/guest/bundle/src/RgfxFeatureProfile.hpp +++ b/guest/bundle/src/RgfxFeatureProfile.hpp @@ -7,7 +7,7 @@ // The device answers the x86 Macs' profile, which the guest's Metal knows, on every host. Under // macOS 26.7.1 both of the oracle's GPUs answer 10002 (the Radeon Pro 5300M and the UHD 630; // measured, docs/graphics-kext/dgpu-oracle.md, Q11), and under macOS 12 both of their drivers -// answer 10001 (AMDRadeonX6000's and AppleIntelKBLGraphics'; read from 12.7.6's drivers), which +// answer 10001 (AMDRadeonX6000's and AppleIntelKBLGraphics' on 12.7.6), which // 12's Metal has limits for (it has none for the M3 Max's 10: 12.7.6's WindowServer ends at // device creation under it). macOS 11's Metal is taken to be 12's here: its boots stop in the // kernel before WindowServer (Graft's to fix). diff --git a/guest/bundle/src/RgfxFiles.hpp b/guest/bundle/src/RgfxFiles.hpp index 863ff4e4a..4d8a11368 100644 --- a/guest/bundle/src/RgfxFiles.hpp +++ b/guest/bundle/src/RgfxFiles.hpp @@ -4,7 +4,7 @@ * serializeToURL:. * * Every Metal process loads the bundle, sandboxed ones too, and a sandbox may list the system - * calls a process may make. WebKit's WebContent profile does (read from the guests' own profiles: + * calls a process may make. WebKit's WebContent profile does (on * macOS 11.7.11, 12.7.6, 13.7.8, 14.8.9, 15.8.2 and 26.7.2 on x86-64, 27.0.1 on arm64): on macOS 11 * and 12 a call its list leaves out kills the process (SIGKILL), and from 13 on it fails (EPERM). * Foundation's file calls make whatever system calls their release's Foundation picks. Its atomic diff --git a/guest/bundle/src/RgfxFunction.h b/guest/bundle/src/RgfxFunction.h index 2b8ed6125..ebebdbc73 100644 --- a/guest/bundle/src/RgfxFunction.h +++ b/guest/bundle/src/RgfxFunction.h @@ -176,8 +176,8 @@ typedef struct { #endif /// The function a pipeline of OpenCL mode is made of, which the GL renderer asks of each kernel -/// of an OpenCL program it builds (GLDComputeProgramRec::createKernel, with 32 bytes of plugin data -/// and bitcodeType 2; read from its code, measured: macOS 26.7.1). Metal answers a new function of +/// of an OpenCL program it builds (with 32 bytes of plugin data +/// and bitcodeType 2; measured: macOS 26.7.1). Metal answers a new function of /// the same name and stage holding the plugin data, and Metal links the kernel for OpenCL mode as /// it makes the pipeline. Ours is a new function of the same entry point, with the plugin return /// data Metal's has (RgfxGLPluginReturnData, RgfxClMode.hpp); the host links the kernel diff --git a/guest/bundle/src/RgfxFunction.mm b/guest/bundle/src/RgfxFunction.mm index 2d6990a35..1dcab0c7a 100644 --- a/guest/bundle/src/RgfxFunction.mm +++ b/guest/bundle/src/RgfxFunction.mm @@ -349,8 +349,8 @@ bool isRendererPluginData(NSData *data) } // The MTLFunction SPI reflectionWithOptions:, which the system's GL renderer sends each kernel of -// an OpenCL program it builds (gldBuildComputeProgram, with options 3, reading the arguments' -// access, type, dataTypeDescription's isConstantBuffer and bufferDataSize; read from its code): +// an OpenCL program it builds (with options 3, reading the arguments' +// access, type, dataTypeDescription's isConstantBuffer and bufferDataSize): // the function's arguments, as a pipeline's reflection of it lists them, in Metal's // MTLFunctionReflectionInternal (RgfxFunctionReflectionOf). Metal's answers one for options 0, 1 // and 3 alike (measured: macOS 26.7.1, the AMD 5300M and the Intel 630), whose contents for 0 and @@ -604,7 +604,7 @@ bool isRendererPluginData(NSData *data) } // Metal's base function ends the process here, a failure Metal reports ("Driver needs to override -// this"; read from code, _MTLFunction, macOS 27.0.1), which neither x86 Mac's function overrides: +// this"; _MTLFunction, macOS 27.0.1), which neither x86 Mac's function overrides: // a fresh one of the AMD 5300M's and of the Intel 630's ends the process at it (measured, macOS // 26.7.1, oracle_spi_members answers). So does this. - (id)functionHandle diff --git a/guest/bundle/src/RgfxGLFunction.mm b/guest/bundle/src/RgfxGLFunction.mm index 0028fcc1d..6f3c5b7c0 100644 --- a/guest/bundle/src/RgfxGLFunction.mm +++ b/guest/bundle/src/RgfxGLFunction.mm @@ -463,7 +463,7 @@ RGFX_LOG_UNRECOGNIZED return _irHash; } -// Metal's base function ends the process here ("Driver needs to override this"; read from code, +// Metal's base function ends the process here ("Driver needs to override this"; // _MTLFunction, macOS 27.0.1), as its function of GL IR does, which answers it from the base // (measured: the member's owner), and so does this. - (id)functionHandle diff --git a/guest/bundle/src/RgfxHeap.mm b/guest/bundle/src/RgfxHeap.mm index ec3c94e8b..17f87e540 100644 --- a/guest/bundle/src/RgfxHeap.mm +++ b/guest/bundle/src/RgfxHeap.mm @@ -601,14 +601,14 @@ static bool rgfxPlacedPastHeap(const char *creator, uint64_t offset, uint64_t si // --- MTLHeapSPI ---------------------------------------------------------------------- // The heap's memory pool: 0, as Metal's base heap answers, which neither x86 Mac's heap overrides -// (read from code; measured on the AMD 5300M and the Intel 630, %spi-answers). +// (measured on the AMD 5300M and the Intel 630, %spi-answers). - (uint64_t)memoryPoolId { return 0; } // Metal's base heap raises an unrecognized selector here, sending itself -// doesNotRecognizeSelector:, and neither x86 Mac's heap overrides it (read from code). +// doesNotRecognizeSelector:, and neither x86 Mac's heap overrides it. - (BOOL)detachBacking { [self doesNotRecognizeSelector:_cmd]; @@ -621,8 +621,8 @@ static bool rgfxPlacedPastHeap(const char *creator, uint64_t offset, uint64_t si return NO; } -// The description Metal's base heap gives, which neither x86 Mac's heap overrides (read from -// code): the object's own description, then each field on a line of its own, indented by +// The description Metal's base heap gives, which neither x86 Mac's heap overrides: +// the object's own description, then each field on a line of its own, indented by // `indent` + 4 spaces. The hazard tracking mode and the options are worded by Metal's own // MTLHazardTrackingModeString and MTLResourceOptionsString, where the guest's Metal has them, and // given as numbers where it does not. diff --git a/guest/bundle/src/RgfxIndirectCommandBuffer.mm b/guest/bundle/src/RgfxIndirectCommandBuffer.mm index 6ab3aeb42..76809eee2 100644 --- a/guest/bundle/src/RgfxIndirectCommandBuffer.mm +++ b/guest/bundle/src/RgfxIndirectCommandBuffer.mm @@ -328,8 +328,8 @@ NSRange RgfxIcbClamp(id icb, NSRange range) return rid; } -// Metal's IOAccel buffer answers gpuResourceID and gpuHandle with resourceIndex (read from code, -// MTLIOAccelIndirectCommandBuffer, macOS 27.0.1), and both x86 Macs' fresh buffer answers one +// Metal's IOAccel buffer answers gpuResourceID and gpuHandle with resourceIndex +// (MTLIOAccelIndirectCommandBuffer, macOS 27.0.1), and both x86 Macs' fresh buffer answers one // value as its handle, its resource index and its identifier (measured: macOS 26.7.1, // oracle_spi_members answers): each is the id the host numbered the buffer by. - (uint64_t)resourceIndex @@ -356,7 +356,7 @@ NSRange RgfxIcbClamp(id icb, NSRange range) } // Metal's IOAccel buffer answers a pointer to its driver's header of the buffer and the header's -// size (read from code, MTLIOAccelIndirectCommandBuffer, macOS 27.0.1): the buffer's commands live +// size (MTLIOAccelIndirectCommandBuffer, macOS 27.0.1): the buffer's commands live // on the host, which keeps no such header in the guest, so these answer none, of size 0. - (void)getHeader:(void **)header headerSize:(uint64_t *)headerSize { @@ -847,7 +847,7 @@ RGFX_LOG_UNRECOGNIZED } // --- Metal's indirect render command SPI that its base command raises an unrecognized selector -// for (it sends itself doesNotRecognizeSelector:; read from code, _MTLIndirectRenderCommand, macOS +// for (it sends itself doesNotRecognizeSelector:; _MTLIndirectRenderCommand, macOS // 27.0.1), which neither x86 Mac's command overrides, and the mesh ones, whose draws no command // here makes: so do these ------------------------------------------------------------------- diff --git a/guest/bundle/src/RgfxMetalDevice+Resources.mm b/guest/bundle/src/RgfxMetalDevice+Resources.mm index 0bc35cb7c..943fc9c82 100644 --- a/guest/bundle/src/RgfxMetalDevice+Resources.mm +++ b/guest/bundle/src/RgfxMetalDevice+Resources.mm @@ -40,7 +40,7 @@ void noteNil(const char *creator, const char *cause, const std::string &asked) } // What a texture's descriptor asks, its protection options among it where the descriptor has -// them (MTLTextureDescriptorInternal's protectionOptions, read from 14.6.1's Metal). +// them (MTLTextureDescriptorInternal's protectionOptions, on 14.6.1). std::string textureAsked(MTLTextureDescriptor *d) { if (d == nil) diff --git a/guest/bundle/src/RgfxMetalDevice.mm b/guest/bundle/src/RgfxMetalDevice.mm index 1dacbbc75..d33232090 100644 --- a/guest/bundle/src/RgfxMetalDevice.mm +++ b/guest/bundle/src/RgfxMetalDevice.mm @@ -1699,7 +1699,7 @@ static NSString *rgfxHostNameOf(const RgfxCaps &caps) // tools/oracle/oracle_archtype.m on the AMD 5300M, the Intel 630 and the M3 Max, // docs/graphics-kext/dgpu-oracle.md Q42). nil, which the IOGPU base answered, is outside that: // Metal's loader ends the process at it (+[MTLLoader sliceIDForDevice:legacyDriverVersion: -// airntDriverVersion:], read from macOS 27's Metal), and MTLAssetUpgraderD, which asks Metal's +// airntDriverVersion:], macOS 27), and MTLAssetUpgraderD, which asks Metal's // archive reader about every .metallib of an app it is told of for every device, ended with // SIGABRT at each app installed in the guest. Each Mac's answer names its own compiler's // target, so the device's names its own: diff --git a/guest/bundle/src/RgfxMetalPrivate.h b/guest/bundle/src/RgfxMetalPrivate.h index da92e6d5b..316ab84df 100644 --- a/guest/bundle/src/RgfxMetalPrivate.h +++ b/guest/bundle/src/RgfxMetalPrivate.h @@ -248,7 +248,7 @@ NS_ASSUME_NONNULL_END - (BOOL)commitAndWaitUntilSubmitted; @end -// read from code: macOS 27 Metal.framework and QuartzCore.framework — the drawable member Metal's +// macOS 27 Metal.framework and QuartzCore.framework — the drawable member Metal's // base command buffer's presentDrawable: calls (-[_MTLCommandBuffer presentDrawable:], which the // AMD 5300M's and the Intel 630's buffers call through super; measured, macOS 26.7.1: a drawable // without it ends the process there with an unrecognized selector). CAMetalDrawable keeps the @@ -259,7 +259,7 @@ NS_ASSUME_NONNULL_END - (void)addPresentScheduledHandler:(void (^_Nonnull)(id _Nonnull))block; @end -// read from code: macOS 27.0.1 Metal.framework — what Metal's base command queue reads off the +// macOS 27.0.1 Metal.framework — what Metal's base command queue reads off the // descriptor it is made with as it starts, the members of the descriptor's internal subclass // (`MTLCommandQueueDescriptorInternal`), which RgfxCommandQueue's rgfxTakeDescriptor: reads where // the guest's descriptor answers them. diff --git a/guest/bundle/src/RgfxRenderPipelineState.mm b/guest/bundle/src/RgfxRenderPipelineState.mm index 73219e4f3..0dd82cbdc 100644 --- a/guest/bundle/src/RgfxRenderPipelineState.mm +++ b/guest/bundle/src/RgfxRenderPipelineState.mm @@ -989,7 +989,7 @@ RgfxRenderPipelinePrivateState privateStateOf(MTLRenderPipelineDescriptor *d) // --- MTLRenderPipelineStateSPI ------------------------------------------------------------- // The members of Metal's render-pipeline SPI that the AMD 5300M's and the Intel 630's pipelines // both answer (measured with respondsToSelector:, macOS 26.7.1, tools/oracle/oracle_spi_members.m), -// each as Metal's base pipeline, _MTLRenderPipelineState, answers it (read from code, macOS +// each as Metal's base pipeline, _MTLRenderPipelineState, answers it (macOS // 27.0.1), and as a fresh pipeline of both x86 Macs answers those that take no argument (measured: // macOS 26.7.1, tools/oracle/oracle_spi_members.m answers). diff --git a/guest/bundle/src/RgfxSampler.mm b/guest/bundle/src/RgfxSampler.mm index aebbed39e..e5a5d2a06 100644 --- a/guest/bundle/src/RgfxSampler.mm +++ b/guest/bundle/src/RgfxSampler.mm @@ -113,7 +113,7 @@ RgfxSamplerParams RgfxSamplerParamsOf(MTLSamplerDescriptor *d) } // Metal's base sampler answers gpuResourceID with gpuHandle and gpuHandle with uniqueIdentifier -// (read from code, _MTLSamplerState, macOS 27.0.1), and both x86 Macs' fresh sampler answers its +// (_MTLSamplerState, macOS 27.0.1), and both x86 Macs' fresh sampler answers its // identifier as its resource index too (measured: macOS 26.7.1, oracle_spi_members answers): each // is the id the host numbered the sampler by. - (uint64_t)gpuHandle diff --git a/guest/bundle/src/RgfxSharedEvent.mm b/guest/bundle/src/RgfxSharedEvent.mm index 3938b4686..87bf1bd88 100644 --- a/guest/bundle/src/RgfxSharedEvent.mm +++ b/guest/bundle/src/RgfxSharedEvent.mm @@ -397,7 +397,7 @@ bool rgfxSendRightOnly(mach_port_t port) } // NO: the event's value is never rolled back, as Metal's base shared event answers, which -// neither x86 Mac's overrides (read from code; measured on the AMD 5300M and the Intel 630, +// neither x86 Mac's overrides (measured on the AMD 5300M and the Intel 630, // %spi-answers). - (BOOL)supportsRollback { diff --git a/guest/bundle/src/RgfxTexture.h b/guest/bundle/src/RgfxTexture.h index c7333fb15..d739fc647 100644 --- a/guest/bundle/src/RgfxTexture.h +++ b/guest/bundle/src/RgfxTexture.h @@ -252,8 +252,8 @@ bool rgfxBlockCompressedFormat(uint64_t format, id _Nullable device); /// the Vulkan platform's tests that compare theirs with Metal's make them /// (two_plane_xr10_fills_off_a_surface_are_metals, heap_texture_sizes_are_metals), and 14.6.1's /// WindowServer, on a display that answers extended range, flattens a window's layers into a -/// Private one of usage ShaderRead and RenderTarget and ends the process at a nil (read from -/// SkyLight's determine_required_pixel_format and MetalBacking::PrepareForUse). A buffer's +/// Private one of usage ShaderRead and RenderTarget and ends the process at a nil. +/// A buffer's /// creator (`overBuffer`) answers nil for them too, as the Vulkan platform makes no texture of /// one over a buffer. The x86 Macs end the process at each of them in the validation. bool rgfxDeviceMakesNoTextureOf(MTLTextureDescriptor *_Nullable descriptor, diff --git a/guest/bundle/src/RgfxTexture.mm b/guest/bundle/src/RgfxTexture.mm index fc595e534..591a886f7 100644 --- a/guest/bundle/src/RgfxTexture.mm +++ b/guest/bundle/src/RgfxTexture.mm @@ -2739,8 +2739,8 @@ RGFX_RESOURCE_SPI // The members of Metal's texture SPI that the AMD 5300M's and the Intel 630's textures both // answer (measured with respondsToSelector:, macOS 26.7.1, tools/oracle/oracle_spi_members.m). -// Metal's IOAccel texture answers gpuResourceID with gpuHandle (read from code, -// MTLIOAccelTexture, macOS 27.0.1), and both x86 Macs' fresh texture answers one value as its +// Metal's IOAccel texture answers gpuResourceID with gpuHandle +// (MTLIOAccelTexture, macOS 27.0.1), and both x86 Macs' fresh texture answers one value as its // handle, its resource index and its identifier (measured: macOS 26.7.1, oracle_spi_members // answers): the handle and the index are gpuResourceID's value, the id the host numbered the // texture by. @@ -2755,7 +2755,7 @@ RGFX_RESOURCE_SPI } // Six faces for a cube texture and a cube array's, one for any other, as Metal's IOAccel texture -// counts them (read from code, MTLIOAccelTexture's initializers, macOS 27.0.1; measured: 1 for a +// counts them (MTLIOAccelTexture's initializers, macOS 27.0.1; measured: 1 for a // 2D texture, macOS 26.7.1). - (NSUInteger)numFaces { @@ -2763,8 +2763,8 @@ RGFX_RESOURCE_SPI return type == MTLTextureTypeCube || type == MTLTextureTypeCubeArray ? 6 : 1; } -// No colour space conversion and no compression: the base answers 0 for each (read from code, -// _MTLResource and MTLIOAccelTexture, macOS 27.0.1), and so do both x86 Macs' textures (measured: +// No colour space conversion and no compression: the base answers 0 for each +// (_MTLResource and MTLIOAccelTexture, macOS 27.0.1), and so do both x86 Macs' textures (measured: // macOS 26.7.1, oracle_spi_members answers). - (uint64_t)colorSpaceConversionMatrix { diff --git a/guest/bundle/src/RgfxVideoH264.hpp b/guest/bundle/src/RgfxVideoH264.hpp index 8f5ffeb78..37af3f7c8 100644 --- a/guest/bundle/src/RgfxVideoH264.hpp +++ b/guest/bundle/src/RgfxVideoH264.hpp @@ -125,7 +125,7 @@ static_assert(offsetof(Pps, second_chroma_qp_index_offset) == 0x480, "PPS layout // releases hold constraint_set4_flag, constraint_set5_flag and reserved_zero_2bits. So from // level_idc on, every field of 11's record sits 8 bytes before Sps's (kFourConstraintFlags): // AppleGVA 108.7.2 reads level_idc at 0x1c, chroma_format_idc at 0x24, max_num_ref_frames at -// 0x818 and frame_mbs_only_flag at 0x828 (read from its code), and on the guest (11.7.11, the +// 0x818 and frame_mbs_only_flag at 0x828, and on the guest (11.7.11, the // 780M host, 2026-11-08) a 640x480 x264 stream's record holds its level, size and reference // count there, and 12.7.6's, 13.7.8's and 26.7.2's where Sps holds them. A record does not say // its layout, so the driver takes the one layout in which the record describes the picture it diff --git a/guest/bundle/src/RgfxVideoStatus.hpp b/guest/bundle/src/RgfxVideoStatus.hpp index 43676a0e3..9d79f536e 100644 --- a/guest/bundle/src/RgfxVideoStatus.hpp +++ b/guest/bundle/src/RgfxVideoStatus.hpp @@ -8,8 +8,8 @@ * fails: for HEVC the frame's callback then carries kVTVideoDecoderMalfunctionErr (-12911), and * so does every frame of the session after it. It takes every query of a decode for its * completion: it reads neither the command's status nor its error word, and delivers the - * surface as a decoded frame whatever the query answers (read from AppleGVA's code on macOS - * 26.7.1, 2026-11-08). A result in the query's fields, a failed call, status 3 and status 0 each + * surface as a decoded frame whatever the query answers (macOS + * 26.7.1). A result in the query's fields, a failed call, status 3 and status 0 each * deliver the frame (measured on the guest with the RTX 5080 host, 2026-11-03). So the schedule * of an HEVC decode waits for the host's verdict on its picture (waitsForHost), and fails where * the host failed it: VideoToolbox reports the error from that picture on, and no frame of a @@ -21,7 +21,7 @@ * 5, 0xe00002bc or 0xffffffff); a failed query call: every frame reaches VideoToolbox as decoded, * and a picture whose schedule failed is never decoded (measured on the guest with the RTX 5080 * host, 2026-11-07, every picture failed on the host). Its pipelines schedule their commands one - * at a time and keep no decode's result (read from AppleGVA's code on macOS 26.7.1). So an H.264 + * at a time and keep no decode's result (macOS 26.7.1). So an H.264 * schedule does not wait for the host, as waiting would only cost: its frames reach the guest as * decoded, as AppleGVA leaves no way to say otherwise. * diff --git a/guest/bundle/tests/files_tests.mm b/guest/bundle/tests/files_tests.mm index dbec711ca..f4a3c6689 100644 --- a/guest/bundle/tests/files_tests.mm +++ b/guest/bundle/tests/files_tests.mm @@ -51,7 +51,7 @@ namespace { const char *g_self = nullptr; // The file system calls of the SDK's sys/syscall.h that the WebContent profile of some release -// leaves out, read from the guests' own profiles (com.apple.WebProcess.sb) on macOS 11.7.11, +// leaves out (com.apple.WebProcess.sb) on macOS 11.7.11, // 12.7.6, 13.7.8, 14.8.9, 15.8.2 and 26.7.2 (x86-64) and 27.0.1 (arm64). A call a profile allows // only outside Lockdown Mode, or only where it leaves IOKit open to the process, counts as // allowed: WebGL runs on the device only where IOKit is open. Every one of them kills the process diff --git a/guest/bundle/tests/gl_tests.mm b/guest/bundle/tests/gl_tests.mm index 89aa4f54a..6d02f2754 100644 --- a/guest/bundle/tests/gl_tests.mm +++ b/guest/bundle/tests/gl_tests.mm @@ -427,8 +427,8 @@ std::vector withWarnings(const std::vector &c, const std::stri } // namespace // Metal's compiler over OpenCL C source, as the GL renderer's cl2Metal compiles a compute program -// (MTLCompileOptions' languageVersion 0x20002, sourceLanguage 1 and its additional arguments, -// read from its code): the library's bytes, or none where this Mac's Metal makes none. Shared +// (MTLCompileOptions' languageVersion 0x20002, sourceLanguage 1 and its additional +// arguments): the library's bytes, or none where this Mac's Metal makes none. Shared // with tests/cl_mode_tests.mm. NSData *clLibraryBytes(id metal, NSString *source, NSArray **names) { diff --git a/guest/bundle/tests/protocol_members.txt b/guest/bundle/tests/protocol_members.txt index c67898ca1..78c509acc 100644 --- a/guest/bundle/tests/protocol_members.txt +++ b/guest/bundle/tests/protocol_members.txt @@ -14,6 +14,9 @@ # "@arm64 " or "@x86_64 " is read only for the bundle of that architecture: a member the two # bundles answer differently has a line for each. # +# A text's "unmeasured" marks what it says Metal's own classes answer as not yet measured by a +# probe of ours (docs/testing.md's unknown): it is owed to an oracle run on the 2019 or the M3. +# # The reasons several lines share: %debug debug groups, signposts and markers name work for Metal's capture and profiling tools; no result, order or value the guest sees changes, and the device has no such tools @@ -37,12 +40,12 @@ %dylib-spi both x86 Macs' dynamic libraries answer it, from Metal's own base class, _MTLDynamicLibrary, not their drivers' (measured with respondsToSelector:, macOS 26.7.1, the AMD 5300M and the Intel 630, tools/oracle/oracle_spi_members.m ask, job m3-max-81768), and no class of ours answers it yet: what it answers there, and whether the device answers it, is not yet decided %spi-neither an SPI member neither the AMD 5300M's nor the Intel 630's objects of the kind answer (measured with respondsToSelector:, macOS 26.7.1, tools/oracle/oracle_spi_members.m), so a caller that sends it to an x86 Mac's object asks first %spi-differ an SPI member one of the AMD 5300M's and the Intel 630's objects of the kind answers and the other does not (measured with respondsToSelector:, macOS 26.7.1, tools/oracle/oracle_spi_members.m), so a caller that sends it to an x86 Mac's object asks first -%cb-base Metal's base command buffer, _MTLCommandBuffer, and its IOAccel subclass, MTLIOAccelCommandBuffer (read from code: macOS 27.0.1's Metal on the M3 Max; src/RgfxCommandObjects.mm, MTLCommandBufferSPI); that the AMD 5300M's and the Intel 630's buffers answer from these classes, not from their own, is to be measured with oracle_spi_members' answering class +%cb-base Metal's base command buffer, _MTLCommandBuffer, and its IOAccel subclass, MTLIOAccelCommandBuffer (unmeasured: macOS 27.0.1's Metal on the M3 Max; src/RgfxCommandObjects.mm, MTLCommandBufferSPI); that the AMD 5300M's and the Intel 630's buffers answer from these classes, not from their own, is to be measured with oracle_spi_members' answering class %cb-answers what a fresh buffer of the AMD 5300M's and of the Intel 630's answers (measured: macOS 26.7.1, tools/oracle/oracle_spi_members.m answers) -%q-base Metal's base command queue, _MTLCommandQueue (read from code: macOS 27.0.1's Metal on the M3 Max; src/RgfxCommandObjects.mm, MTLCommandQueueSPI); that the AMD 5300M's and the Intel 630's queues answer from it, not from their own classes, is to be measured with oracle_spi_members' answering class +%q-base Metal's base command queue, _MTLCommandQueue (unmeasured: macOS 27.0.1's Metal on the M3 Max; src/RgfxCommandObjects.mm, MTLCommandQueueSPI); that the AMD 5300M's and the Intel 630's queues answer from it, not from their own classes, is to be measured with oracle_spi_members' answering class %q-answers what a fresh queue of the AMD 5300M's and of the Intel 630's answers (measured: macOS 26.7.1, tools/oracle/oracle_spi_members.m answers) -%enc-base Metal's base command encoder, _MTLCommandEncoder, its base parallel render encoder, _MTLParallelRenderCommandEncoder, and their IOAccel subclasses (read from code: macOS 27.0.1's Metal on the M3 Max; src/RgfxCommandObjects.mm, the encoders' SPI sections); that the AMD 5300M's and the Intel 630's encoders answer from these classes, not from their own, is to be measured with oracle_spi_members' answering class -%pipe-base Metal's base pipelines, _MTLComputePipelineState and _MTLRenderPipelineState (read from code: macOS 27.0.1's Metal on the M3 Max; src/RgfxComputePipelineState.mm and src/RgfxRenderPipelineState.mm, their SPI sections); that the AMD 5300M's and the Intel 630's pipelines answer from these classes, not from their own, is to be measured with oracle_spi_members' answering class +%enc-base Metal's base command encoder, _MTLCommandEncoder, its base parallel render encoder, _MTLParallelRenderCommandEncoder, and their IOAccel subclasses (unmeasured: macOS 27.0.1's Metal on the M3 Max; src/RgfxCommandObjects.mm, the encoders' SPI sections); that the AMD 5300M's and the Intel 630's encoders answer from these classes, not from their own, is to be measured with oracle_spi_members' answering class +%pipe-base Metal's base pipelines, _MTLComputePipelineState and _MTLRenderPipelineState (unmeasured: macOS 27.0.1's Metal on the M3 Max; src/RgfxComputePipelineState.mm and src/RgfxRenderPipelineState.mm, their SPI sections); that the AMD 5300M's and the Intel 630's pipelines answer from these classes, not from their own, is to be measured with oracle_spi_members' answering class %spi-answers what a fresh object of the kind of the AMD 5300M's and of the Intel 630's answers, for a member that takes no argument (measured: macOS 26.7.1, tools/oracle/oracle_spi_members.m answers) %in-flight NO while a command buffer that names the resource's memory is submitted and its completion is yet to be taken, for any use, and YES before and after, as the Intel 630 answers (measured: macOS 26.7.1, tools/oracle/oracle_complete.m; docs/graphics-kext/dgpu-oracle.md, Q26; RGFX_RESOURCE_SPI) %old-only a member only older guest releases' protocols carry (tests/protocol_members_releases.txt), with no public counterpart; no app pass on the releases that carry it showed a guest framework sending it to the bundle's objects (the bundle logs each selector it does not recognize, RGFX: unrecognized), so a call raises an unrecognized selector, as it did before @@ -824,7 +827,7 @@ supportsBufferlessClientStorageTexture base %base-spi supportsCMPIndirectCommandBuffers implemented supportsColorSpaceConversionMatrixSelection base %base-spi supportsCombinedMSAAStoreAndResolveAction implemented -supportsCommandBufferJump base the IOGPU base answers NO, which stands, though the M3 Max, the AMD 5300M and the Intel 630 answer YES (measured, tools/base_answers_probe.m): it gates GPU-side control flow, MPSGraph's if and while ops and MPSImage's while loops, which encode encodeStartIf: and encodeStartWhile: only on YES, MPSImage looping on the CPU otherwise (read from code, MPSGraph and MPSCore, arm64e macOS 27.0.1); the device's compute encoder refuses GPU-side control flow +supportsCommandBufferJump base the IOGPU base answers NO, which stands, though the M3 Max, the AMD 5300M and the Intel 630 answer YES (measured, tools/base_answers_probe.m): it gates GPU-side control flow, MPSGraph's if and while ops and MPSImage's while loops, which encode encodeStartIf: and encodeStartWhile: only on YES, MPSImage looping on the CPU otherwise (unmeasured: MPSGraph and MPSCore, arm64e macOS 27.0.1); the device's compute encoder refuses GPU-side control flow supportsCommandQueueBarriers base %base-spi supportsCompressedTextureViewSPI base %base-spi supportsComputeCompressedTextureWrite base %base-spi @@ -1375,17 +1378,17 @@ storeTileRenderPipelineDescriptor: unsupported Metal's archive pipeline collecti copyFromTensor:sourceSlice:toTensor:destinationSlice: unsupported tensors copyFromTexture:sourceSlice:sourceLevel:sourceOrigin:sourceSize:toTexture:destinationSlice:destinationLevel:destinationOrigin:options: absent %spi-differ (the Intel 630 answers it) endEncodingAndRetrieveProgramAddressTable implemented -fillBuffer:range:pattern4: metal raises an unrecognized selector, as Metal's IOAccel blit encoder does: it sends itself doesNotRecognizeSelector: (read from code, MTLIOAccelBlitCommandEncoder, macOS 27.0.1) -fillTexture:level:slice:region:bytes:length: metal raises an unrecognized selector, as Metal's IOAccel blit encoder does: it sends itself doesNotRecognizeSelector: (read from code, MTLIOAccelBlitCommandEncoder, macOS 27.0.1) -fillTexture:level:slice:region:color: metal fills from the color in the texture's own format, as Metal's IOAccel blit encoder does (read from code, MTLIOAccelBlitCommandEncoder, macOS 27.0.1), which raises, as the fill from bytes does -fillTexture:level:slice:region:color:pixelFormat: metal fills from the color packed as bytes, as Metal's IOAccel blit encoder does (read from code, MTLIOAccelBlitCommandEncoder, macOS 27.0.1), which raises, as the fill from bytes does -insertSplit metal raises an unrecognized selector, as Metal's base encoder does: it sends itself doesNotRecognizeSelector: (read from code, %enc-base) -invalidateCompressedTexture: metal raises an unrecognized selector, as Metal's base encoder does: it sends itself doesNotRecognizeSelector: (read from code, %enc-base) -invalidateCompressedTexture:slice:level: metal raises an unrecognized selector, as Metal's base encoder does: it sends itself doesNotRecognizeSelector: (read from code, %enc-base) -optimizeContentsForTexture:readAccessPattern:readAccessor: metal raises an unrecognized selector, as Metal's base encoder does: it sends itself doesNotRecognizeSelector: (read from code, %enc-base) -optimizeContentsForTexture:readAccessPattern:readAccessor:slice:level: metal raises an unrecognized selector, as Metal's base encoder does: it sends itself doesNotRecognizeSelector: (read from code, %enc-base) +fillBuffer:range:pattern4: metal raises an unrecognized selector, as Metal's IOAccel blit encoder does: it sends itself doesNotRecognizeSelector: (unmeasured: MTLIOAccelBlitCommandEncoder, macOS 27.0.1) +fillTexture:level:slice:region:bytes:length: metal raises an unrecognized selector, as Metal's IOAccel blit encoder does: it sends itself doesNotRecognizeSelector: (unmeasured: MTLIOAccelBlitCommandEncoder, macOS 27.0.1) +fillTexture:level:slice:region:color: metal fills from the color in the texture's own format, as Metal's IOAccel blit encoder does (unmeasured: MTLIOAccelBlitCommandEncoder, macOS 27.0.1), which raises, as the fill from bytes does +fillTexture:level:slice:region:color:pixelFormat: metal fills from the color packed as bytes, as Metal's IOAccel blit encoder does (unmeasured: MTLIOAccelBlitCommandEncoder, macOS 27.0.1), which raises, as the fill from bytes does +insertSplit metal raises an unrecognized selector, as Metal's base encoder does: it sends itself doesNotRecognizeSelector: (unmeasured, %enc-base) +invalidateCompressedTexture: metal raises an unrecognized selector, as Metal's base encoder does: it sends itself doesNotRecognizeSelector: (unmeasured, %enc-base) +invalidateCompressedTexture:slice:level: metal raises an unrecognized selector, as Metal's base encoder does: it sends itself doesNotRecognizeSelector: (unmeasured, %enc-base) +optimizeContentsForTexture:readAccessPattern:readAccessor: metal raises an unrecognized selector, as Metal's base encoder does: it sends itself doesNotRecognizeSelector: (unmeasured, %enc-base) +optimizeContentsForTexture:readAccessPattern:readAccessor:slice:level: metal raises an unrecognized selector, as Metal's base encoder does: it sends itself doesNotRecognizeSelector: (unmeasured, %enc-base) [RgfxBuffer] -_aneIOSurface metal null, as Metal's IOAccel buffer answers (read from code, MTLIOAccelBuffer, macOS 27.0.1; %spi-answers) +_aneIOSurface metal null, as Metal's IOAccel buffer answers (unmeasured: MTLIOAccelBuffer, macOS 27.0.1; %spi-answers) allocationID implemented detachBacking absent %spi-neither doesAliasAllResources:count: implemented @@ -1409,25 +1412,25 @@ waitUntilComplete implemented waits while isComplete answers NO, as the Intel 63 [RgfxCmdBuffer] __waitUntilCompletedAsync: implemented __waitUntilScheduledAsync: implemented -addPurgedHeap: unsupported purging a heap as a command buffer runs: Metal's IOAccel buffer hands it to its kernel to purge (read from code, %cb-base) -addPurgedResource: unsupported purging a resource as a command buffer runs: Metal's IOAccel buffer hands it to its kernel to purge (read from code, %cb-base) +addPurgedHeap: unsupported purging a heap as a command buffer runs: Metal's IOAccel buffer hands it to its kernel to purge (unmeasured, %cb-base) +addPurgedResource: unsupported purging a resource as a command buffer runs: Metal's IOAccel buffer hands it to its kernel to purge (unmeasured, %cb-base) commitAndHold implemented commitAndWaitUntilSubmitted implemented -commitAndWaitUntilSubmittedWithDeadline: metal commits with commitWithDeadline:, which raises an unrecognized selector, as Metal's base buffer does (read from code, %cb-base; whether the AMD 5300M's and the Intel 630's own classes override it is to be measured with oracle_spi_members' answering class) -commitWithDeadline: metal raises an unrecognized selector, as Metal's base buffer does: it sends itself doesNotRecognizeSelector: (read from code, %cb-base; whether the AMD 5300M's and the Intel 630's own classes override it is to be measured with oracle_spi_members' answering class) +commitAndWaitUntilSubmittedWithDeadline: metal commits with commitWithDeadline:, which raises an unrecognized selector, as Metal's base buffer does (unmeasured, %cb-base; whether the AMD 5300M's and the Intel 630's own classes override it is to be measured with oracle_spi_members' answering class) +commitWithDeadline: metal raises an unrecognized selector, as Metal's base buffer does: it sends itself doesNotRecognizeSelector: (unmeasured, %cb-base; whether the AMD 5300M's and the Intel 630's own classes override it is to be measured with oracle_spi_members' answering class) computeCommandEncoderWithDispatchType:substreamCount: absent %spi-neither -configWithCommandBufferDescriptor: metal Metal's base buffer takes only the descriptor's log state (read from code, %cb-base), and a descriptor of the device's has none: the device makes no log state +configWithCommandBufferDescriptor: metal Metal's base buffer takes only the descriptor's log state (unmeasured, %cb-base), and a descriptor of the device's has none: the device makes no log state deadlineProfile metal nil, as the AMD 5300M's and the Intel 630's buffers answer (measured, %cb-answers); the device carries no deadline -debugBufferContentsWithLength: metal no debug buffer, of length 0, as Metal's base buffer answers (read from code, %cb-base) +debugBufferContentsWithLength: metal no debug buffer, of length 0, as Metal's base buffer answers (unmeasured, %cb-base) debugCommandEncoder absent %spi-neither -doCorruptCBSPI: unsupported corrupting a command buffer on purpose, a tool's hook into Metal's IOAccel buffer's kernel commands (read from code, %cb-base) +doCorruptCBSPI: unsupported corrupting a command buffer on purpose, a tool's hook into Metal's IOAccel buffer's kernel commands (unmeasured, %cb-base) dropResourceGroups:count: absent %spi-neither encodeCacheHintFinalize:resourceGroups:count: absent %spi-neither encodeCacheHintTag:resourceGroups:count: absent %spi-neither -encodeConditionalAbortEvent: unsupported aborting a command buffer on an event, a kernel command of Metal's IOAccel buffer (read from code, %cb-base) -encodeDashboardFinalizeForResourceGroup:dashboard:value:forIndex: metal ends the process with Metal's words, as Metal's base buffer does: not supported on this device (read from code, %cb-base) -encodeDashboardFinalizeForResourceGroup:dashboard:values:indices:count: metal ends the process with Metal's words, as Metal's base buffer does: not supported on this device (read from code, %cb-base) -encodeDashboardTagForResourceGroup: metal ends the process with Metal's words, as Metal's base buffer does: not supported on this device (read from code, %cb-base) +encodeConditionalAbortEvent: unsupported aborting a command buffer on an event, a kernel command of Metal's IOAccel buffer (unmeasured, %cb-base) +encodeDashboardFinalizeForResourceGroup:dashboard:value:forIndex: metal ends the process with Metal's words, as Metal's base buffer does: not supported on this device (unmeasured, %cb-base) +encodeDashboardFinalizeForResourceGroup:dashboard:values:indices:count: metal ends the process with Metal's words, as Metal's base buffer does: not supported on this device (unmeasured, %cb-base) +encodeDashboardTagForResourceGroup: metal ends the process with Metal's words, as Metal's base buffer does: not supported on this device (unmeasured, %cb-base) encodeSignalEvent:value:agentMask: implemented @x86_64 encodeSignalEventScheduled:value: absent %spi-neither (an Apple GPU's SPI, which the arm64 bundle answers) @arm64 encodeSignalEventScheduled:value: implemented as the M3 Max's buffers answer it (src/RgfxCommandObjects.mm) @@ -1441,14 +1444,14 @@ privateDataOffset implemented privateLoggingBuffer implemented profilingResults implemented protectionOptions implemented -sampledAccelerationStructureCommandEncoder:capacity: metal nil, as Metal's base buffer answers for each sampling encoder (read from code, %cb-base); the device samples no counters -sampledAccelerationStructureCommandEncoderWithDescriptor:programInfoBuffer:capacity: metal nil, as Metal's base buffer answers for each sampling encoder (read from code, %cb-base); the device samples no counters -sampledBlitCommandEncoder:capacity: metal nil, as Metal's base buffer answers for each sampling encoder (read from code, %cb-base); the device samples no counters -sampledBlitCommandEncoderWithDescriptor:programInfoBuffer:capacity: metal nil, as Metal's base buffer answers for each sampling encoder (read from code, %cb-base); the device samples no counters -sampledComputeCommandEncoderWithDescriptor:programInfoBuffer:capacity: metal nil, as Metal's base buffer answers for each sampling encoder (read from code, %cb-base); the device samples no counters -sampledComputeCommandEncoderWithDispatchType:programInfoBuffer:capacity: metal nil, as Metal's base buffer answers for each sampling encoder (read from code, %cb-base); the device samples no counters -sampledComputeCommandEncoderWithProgramInfoBuffer:capacity: metal nil, as Metal's base buffer answers for each sampling encoder (read from code, %cb-base); the device samples no counters -sampledRenderCommandEncoderWithDescriptor:programInfoBuffer:capacity: metal nil, as Metal's base buffer answers for each sampling encoder (read from code, %cb-base); the device samples no counters +sampledAccelerationStructureCommandEncoder:capacity: metal nil, as Metal's base buffer answers for each sampling encoder (unmeasured, %cb-base); the device samples no counters +sampledAccelerationStructureCommandEncoderWithDescriptor:programInfoBuffer:capacity: metal nil, as Metal's base buffer answers for each sampling encoder (unmeasured, %cb-base); the device samples no counters +sampledBlitCommandEncoder:capacity: metal nil, as Metal's base buffer answers for each sampling encoder (unmeasured, %cb-base); the device samples no counters +sampledBlitCommandEncoderWithDescriptor:programInfoBuffer:capacity: metal nil, as Metal's base buffer answers for each sampling encoder (unmeasured, %cb-base); the device samples no counters +sampledComputeCommandEncoderWithDescriptor:programInfoBuffer:capacity: metal nil, as Metal's base buffer answers for each sampling encoder (unmeasured, %cb-base); the device samples no counters +sampledComputeCommandEncoderWithDispatchType:programInfoBuffer:capacity: metal nil, as Metal's base buffer answers for each sampling encoder (unmeasured, %cb-base); the device samples no counters +sampledComputeCommandEncoderWithProgramInfoBuffer:capacity: metal nil, as Metal's base buffer answers for each sampling encoder (unmeasured, %cb-base); the device samples no counters +sampledRenderCommandEncoderWithDescriptor:programInfoBuffer:capacity: metal nil, as Metal's base buffer answers for each sampling encoder (unmeasured, %cb-base); the device samples no counters setLogs: implemented setPrivateData: implemented setPrivateDataOffset: implemented @@ -1456,7 +1459,7 @@ setPrivateLoggingBuffer: implemented setProfilingEnabled: implemented setProtectionOptions: implemented setResourceGroups:count: absent %spi-neither -setResponsibleTaskIDs:count: metal names the tasks the work is for, which Metal's IOAccel buffer takes and does nothing with (read from code, %cb-base); nothing the guest sees changes +setResponsibleTaskIDs:count: metal names the tasks the work is for, which Metal's IOAccel buffer takes and does nothing with (unmeasured, %cb-base); nothing the guest sees changes setSharedIndirectionTable: implemented sharedIndirectionTable implemented useInternalResidencySet: implemented @@ -1467,7 +1470,7 @@ videoCommandEncoder absent %spi-differ (the AMD 5300M answers it) StatLocations implemented StatOptions implemented addPerfSampleHandler: metal Metal's queue never called the handler after a command buffer completed (measured: M3 Max, macOS 27), and nor does this -availableCounters metal none: the device gathers no statistics (setStatEnabled: YES is unsupported) and samples no counters, where the AMD 5300M's and the Intel 630's queues list their GPUs' own (measured, %q-answers); Metal's base queue fails it as not implemented (read from code, %q-base) +availableCounters metal none: the device gathers no statistics (setStatEnabled: YES is unsupported) and samples no counters, where the AMD 5300M's and the Intel 630's queues list their GPUs' own (measured, %q-answers); Metal's base queue fails it as not implemented (unmeasured, %q-base) availableCountersAndDict absent %spi-differ (the Intel 630 answers it) backgroundTrackingPID implemented commitQueue implemented @@ -1476,7 +1479,7 @@ commitsWithQoS implemented completionQueue implemented counterInfo implemented disableCrossQueueHazardTracking implemented -dispatchAvailableCompletionNotifications metal does nothing, as Metal's base queue does (read from code, %q-base): the queue delivers its records as they come (rgfxDeliver:here:) +dispatchAvailableCompletionNotifications metal does nothing, as Metal's base queue does (unmeasured, %q-base): the queue delivers its records as they come (rgfxDeliver:here:) executionEnabled implemented finish implemented getBackgroundGPUPriority implemented @@ -1491,20 +1494,20 @@ maxCommandBufferCount implemented numInternalSampleCounters implemented numRequestedCounters implemented qosLevel implemented -requestCounters: metal -1, as requestCounters:withIndex: answers for every list tried (measured: M3 Max, macOS 27): the device samples no counters; Metal's base queue fails it as not implemented (read from code, %q-base) +requestCounters: metal -1, as requestCounters:withIndex: answers for every list tried (measured: M3 Max, macOS 27): the device samples no counters; Metal's base queue fails it as not implemented (unmeasured, %q-base) requestCounters:withIndex: metal -1 for every list tried (nil, empty, one counter), as Metal's queue answers (measured: M3 Max, macOS 27) setBackgroundGPUPriority: implemented setBackgroundGPUPriority:offset: implemented setBackgroundTrackingPID: implemented setCompletionQueue: implemented setCounterInfo: implemented -setExecutionEnabled: partial completing a queue's command buffers without running them, as Metal's queue does while execution is off (read from code, %q-base): the device runs them +setExecutionEnabled: partial completing a queue's command buffers without running them, as Metal's queue does while execution is off (unmeasured, %q-base): the device runs them setGPUPriority: implemented setGPUPriority:offset: implemented setNumInternalSampleCounters: implemented setNumRequestedCounters: implemented setProfilingEnabled: implemented -setSkipRender: partial skipping a queue's render work: Metal's buffers take the switch from their queue as they are made (read from code, %q-base); what a GPU's driver skips with it is not read +setSkipRender: partial skipping a queue's render work: Metal's buffers take the switch from their queue as they are made (unmeasured, %q-base); what a GPU's driver skips with it is unknown setStatEnabled: partial command statistics setStatLocations: implemented setStatOptions: implemented @@ -1525,15 +1528,15 @@ encodeStartWhile:offset:comparison:referenceValue: unsupported GPU-side loops (t endEncodingAndRetrieveProgramAddressTable implemented endVirtualSubstream absent %spi-neither insertCompressedTextureReinterpretationFlush absent %spi-neither -insertSplit metal raises an unrecognized selector, as Metal's base encoder does: it sends itself doesNotRecognizeSelector: (read from code, %enc-base) +insertSplit metal raises an unrecognized selector, as Metal's base encoder does: it sends itself doesNotRecognizeSelector: (unmeasured, %enc-base) insertUncompressedToCompressedFlush absent %spi-neither newKernelDebugInfo unsupported a shader's debug info nextVirtualSubstream absent %spi-neither setSubstream: absent %spi-neither -setThreadgroupDistributionMode: metal does nothing, as Metal's base encoder does (read from code, %enc-base): the host's GPU spreads a dispatch's threadgroups -setThreadgroupDistributionModeWithClusterGroupIndex: metal does nothing, as Metal's base encoder does (read from code, %enc-base): the host's GPU spreads a dispatch's threadgroups -setThreadgroupPackingDisabled: metal raises an unrecognized selector, as Metal's base encoder does: it sends itself doesNotRecognizeSelector: (read from code, %enc-base) -setToolsDispatchBufferSPI:atIndex: metal raises an unrecognized selector, as Metal's IOAccel compute encoder does: it sends itself doesNotRecognizeSelector: (read from code, %enc-base) +setThreadgroupDistributionMode: metal does nothing, as Metal's base encoder does (unmeasured, %enc-base): the host's GPU spreads a dispatch's threadgroups +setThreadgroupDistributionModeWithClusterGroupIndex: metal does nothing, as Metal's base encoder does (unmeasured, %enc-base): the host's GPU spreads a dispatch's threadgroups +setThreadgroupPackingDisabled: metal raises an unrecognized selector, as Metal's base encoder does: it sends itself doesNotRecognizeSelector: (unmeasured, %enc-base) +setToolsDispatchBufferSPI:atIndex: metal raises an unrecognized selector, as Metal's IOAccel compute encoder does: it sends itself doesNotRecognizeSelector: (unmeasured, %enc-base) signalProgress: absent %spi-neither useResidencySet: partial %x86-residency useResidencySets:count: partial %x86-residency @@ -1541,24 +1544,24 @@ useResourceGroup:usage: absent %spi-neither waitForProgress: absent %spi-neither waitForVirtualSubstream: absent %spi-neither [RgfxComputePipelineState] -debugInstrumentationData metal nil, as Metal's base pipeline answers for one made without debug instrumentation (read from code, %pipe-base; %spi-answers): the device instruments no shader -functionReflectionWithFunctionDescriptor: metal raises an unrecognized selector, as Metal's base pipeline does: it sends itself doesNotRecognizeSelector: (read from code, %pipe-base) -getComputeKernelTelemetryID metal the low 32 bits of uniqueIdentifier, as Metal's base pipeline and the AMD 5300M's answer (read from code, %pipe-base; %spi-answers; the Intel 630's answers 0) -globalConstantsBase metal 0, as Metal's base pipeline answers for every pipeline (read from code, %pipe-base; %spi-answers) -globalConstantsSize metal 0, as Metal's base pipeline answers for every pipeline (read from code, %pipe-base; %spi-answers) +debugInstrumentationData metal nil, as Metal's base pipeline answers for one made without debug instrumentation (unmeasured, %pipe-base; %spi-answers): the device instruments no shader +functionReflectionWithFunctionDescriptor: metal raises an unrecognized selector, as Metal's base pipeline does: it sends itself doesNotRecognizeSelector: (unmeasured, %pipe-base) +getComputeKernelTelemetryID metal the low 32 bits of uniqueIdentifier, as Metal's base pipeline and the AMD 5300M's answer (unmeasured, %pipe-base; %spi-answers; the Intel 630's answers 0) +globalConstantsBase metal 0, as Metal's base pipeline answers for every pipeline (unmeasured, %pipe-base; %spi-answers) +globalConstantsSize metal 0, as Metal's base pipeline answers for every pipeline (unmeasured, %pipe-base; %spi-answers) gpuAddress metal 0 for every pipeline, one that supports indirect command buffers too, as Metal's answer (measured: M3 Max, macOS 27) -gpuHandle metal resourceIndex, as Metal's base pipeline answers (read from code, %pipe-base; %spi-answers) +gpuHandle metal resourceIndex, as Metal's base pipeline answers (unmeasured, %pipe-base; %spi-answers) newComputePipelineStateWithAdditionalBinaryFunctions:resourceIndices:error: unsupported binary functions -pipelineBinaries metal an empty dictionary, as Metal's base pipeline answers for every pipeline (read from code, %pipe-base; %spi-answers) -resourceIndex metal gpuResourceID's value: Metal's base pipeline answers gpuResourceID with gpuHandle, and gpuHandle with resourceIndex (read from code, %pipe-base) -shaderValidationState metal MTLShaderValidationDisabled, as Metal's base pipeline answers for every pipeline (read from code, %pipe-base; %spi-answers) and shaderValidation answers (%no-validation) +pipelineBinaries metal an empty dictionary, as Metal's base pipeline answers for every pipeline (unmeasured, %pipe-base; %spi-answers) +resourceIndex metal gpuResourceID's value: Metal's base pipeline answers gpuResourceID with gpuHandle, and gpuHandle with resourceIndex (unmeasured, %pipe-base) +shaderValidationState metal MTLShaderValidationDisabled, as Metal's base pipeline answers for every pipeline (unmeasured, %pipe-base; %spi-answers) and shaderValidation answers (%no-validation) textureWriteRoundingMode implemented uniqueIdentifier implemented [RgfxDepthStencilState] readsDepth metal YES for every descriptor, as the AMD 5300M's and the Intel 630's states answer (measured: macOS 26.7.1) readsStencil metal YES for every descriptor, as the AMD 5300M's and the Intel 630's states answer (measured: macOS 26.7.1) -resourceIndex metal raises an unrecognized selector, as Metal's base state does (read from code, _MTLDepthStencilState, macOS 27.0.1), which ends the process on both x86 Macs (%spi-answers); as gpuResourceID -uniqueIdentifier metal raises an unrecognized selector, as Metal's base state does (read from code, _MTLDepthStencilState, macOS 27.0.1), which ends the process on both x86 Macs (%spi-answers); as gpuResourceID +resourceIndex metal raises an unrecognized selector, as Metal's base state does (unmeasured: _MTLDepthStencilState, macOS 27.0.1), which ends the process on both x86 Macs (%spi-answers); as gpuResourceID +uniqueIdentifier metal raises an unrecognized selector, as Metal's base state does (unmeasured: _MTLDepthStencilState, macOS 27.0.1), which ends the process on both x86 Macs (%spi-answers); as gpuResourceID writesDepth metal YES for every descriptor, as the AMD 5300M's and the Intel 630's states answer (measured: macOS 26.7.1) writesStencil metal YES for every descriptor, as the AMD 5300M's and the Intel 630's states answer (measured: macOS 26.7.1) [RgfxDynamicLibrary] @@ -1592,7 +1595,7 @@ bitCodeHash implemented bitcodeData implemented debugInstrumentationData implemented filePath implemented -functionHandle metal ends the process with Metal's words, as Metal's base function does: Driver needs to override this (read from code, _MTLFunction, macOS 27.0.1; %spi-answers: a fresh function of either x86 Mac ends the process at it) +functionHandle metal ends the process with Metal's words, as Metal's base function does: Driver needs to override this (unmeasured: _MTLFunction, macOS 27.0.1; %spi-answers: a fresh function of either x86 Mac ends the process at it) importedLibraries implemented importedSymbols implemented lineNumber implemented @@ -1633,7 +1636,7 @@ bitCodeHash implemented bitcodeData implemented debugInstrumentationData metal nil (%gl-spi) filePath metal nil (%gl-spi) -functionHandle metal ends the process with Metal's words, as Metal's base function does: Driver needs to override this (read from code, _MTLFunction, macOS 27.0.1); Metal's function of GL IR answers it from the base (%gl-spi) +functionHandle metal ends the process with Metal's words, as Metal's base function does: Driver needs to override this (unmeasured: _MTLFunction, macOS 27.0.1); Metal's function of GL IR answers it from the base (%gl-spi) importedLibraries metal nil (%gl-spi) importedSymbols metal nil (%gl-spi) lineNumber metal 0 (%gl-spi) @@ -1651,13 +1654,13 @@ returnType metal nil (%gl-spi) setRelocations: implemented unpackedFilePath metal nil (%gl-spi) [RgfxHeap] -detachBacking metal raises an unrecognized selector, as Metal's base heap does: it sends itself doesNotRecognizeSelector: (read from code, _MTLHeap, macOS 27.0.1) +detachBacking metal raises an unrecognized selector, as Metal's base heap does: it sends itself doesNotRecognizeSelector: (unmeasured: _MTLHeap, macOS 27.0.1) formattedDescription: implemented gpuAddress implemented -memoryPoolId metal 0, as Metal's base heap answers (read from code, _MTLHeap, macOS 27.0.1; %spi-answers) +memoryPoolId metal 0, as Metal's base heap answers (unmeasured: _MTLHeap, macOS 27.0.1; %spi-answers) newAccelerationStructureWithSize:offset:resourceIndex: unsupported ray tracing newAccelerationStructureWithSize:resourceIndex: unsupported ray tracing -replaceBackingWithRanges:readOnly: metal raises an unrecognized selector, as Metal's base heap does: it sends itself doesNotRecognizeSelector: (read from code, _MTLHeap, macOS 27.0.1) +replaceBackingWithRanges:readOnly: metal raises an unrecognized selector, as Metal's base heap does: it sends itself doesNotRecognizeSelector: (unmeasured: _MTLHeap, macOS 27.0.1) unfilteredResourceOptions implemented [RgfxIOSurfaceTexture] canGenerateMipmapLevels absent %spi-neither @@ -1700,43 +1703,43 @@ setToolsDispatchBufferSPI:atIndex: absent %spi-neither drawArguments unsupported reading back what an indirect command was given drawIndexedArguments unsupported reading back what an indirect command was given drawIndexedPatchesArguments unsupported reading back what an indirect command was given -drawMeshThreadgroupsArguments metal raises an unrecognized selector, as Metal's base indirect render command does: it sends itself doesNotRecognizeSelector: (read from code, _MTLIndirectRenderCommand, macOS 27.0.1); no command here draws a mesh -drawMeshThreadsArguments metal raises an unrecognized selector, as Metal's base indirect render command does: it sends itself doesNotRecognizeSelector: (read from code, _MTLIndirectRenderCommand, macOS 27.0.1); no command here draws a mesh +drawMeshThreadgroupsArguments metal raises an unrecognized selector, as Metal's base indirect render command does: it sends itself doesNotRecognizeSelector: (unmeasured: _MTLIndirectRenderCommand, macOS 27.0.1); no command here draws a mesh +drawMeshThreadsArguments metal raises an unrecognized selector, as Metal's base indirect render command does: it sends itself doesNotRecognizeSelector: (unmeasured: _MTLIndirectRenderCommand, macOS 27.0.1); no command here draws a mesh drawPatchesArguments unsupported reading back what an indirect command was given -getBlendColor metal raises an unrecognized selector, as Metal's base indirect render command does: it sends itself doesNotRecognizeSelector: (read from code, _MTLIndirectRenderCommand, macOS 27.0.1), which neither x86 Mac's command overrides +getBlendColor metal raises an unrecognized selector, as Metal's base indirect render command does: it sends itself doesNotRecognizeSelector: (unmeasured: _MTLIndirectRenderCommand, macOS 27.0.1), which neither x86 Mac's command overrides getCommandType unsupported reading back what an indirect command was given -getCullMode metal raises an unrecognized selector, as Metal's base indirect render command does: it sends itself doesNotRecognizeSelector: (read from code, _MTLIndirectRenderCommand, macOS 27.0.1), which neither x86 Mac's command overrides -getDepthBiasInfo metal raises an unrecognized selector, as Metal's base indirect render command does: it sends itself doesNotRecognizeSelector: (read from code, _MTLIndirectRenderCommand, macOS 27.0.1), which neither x86 Mac's command overrides -getDepthClipMode metal raises an unrecognized selector, as Metal's base indirect render command does: it sends itself doesNotRecognizeSelector: (read from code, _MTLIndirectRenderCommand, macOS 27.0.1), which neither x86 Mac's command overrides -getDepthStencilState metal raises an unrecognized selector, as Metal's base indirect render command does: it sends itself doesNotRecognizeSelector: (read from code, _MTLIndirectRenderCommand, macOS 27.0.1), which neither x86 Mac's command overrides -getDepthStencilStateUniqueIdentifier metal raises an unrecognized selector, as Metal's base indirect render command does: it sends itself doesNotRecognizeSelector: (read from code, _MTLIndirectRenderCommand, macOS 27.0.1), which neither x86 Mac's command overrides -getDepthTestBounds metal raises an unrecognized selector, as Metal's base indirect render command does: it sends itself doesNotRecognizeSelector: (read from code, _MTLIndirectRenderCommand, macOS 27.0.1), which neither x86 Mac's command overrides +getCullMode metal raises an unrecognized selector, as Metal's base indirect render command does: it sends itself doesNotRecognizeSelector: (unmeasured: _MTLIndirectRenderCommand, macOS 27.0.1), which neither x86 Mac's command overrides +getDepthBiasInfo metal raises an unrecognized selector, as Metal's base indirect render command does: it sends itself doesNotRecognizeSelector: (unmeasured: _MTLIndirectRenderCommand, macOS 27.0.1), which neither x86 Mac's command overrides +getDepthClipMode metal raises an unrecognized selector, as Metal's base indirect render command does: it sends itself doesNotRecognizeSelector: (unmeasured: _MTLIndirectRenderCommand, macOS 27.0.1), which neither x86 Mac's command overrides +getDepthStencilState metal raises an unrecognized selector, as Metal's base indirect render command does: it sends itself doesNotRecognizeSelector: (unmeasured: _MTLIndirectRenderCommand, macOS 27.0.1), which neither x86 Mac's command overrides +getDepthStencilStateUniqueIdentifier metal raises an unrecognized selector, as Metal's base indirect render command does: it sends itself doesNotRecognizeSelector: (unmeasured: _MTLIndirectRenderCommand, macOS 27.0.1), which neither x86 Mac's command overrides +getDepthTestBounds metal raises an unrecognized selector, as Metal's base indirect render command does: it sends itself doesNotRecognizeSelector: (unmeasured: _MTLIndirectRenderCommand, macOS 27.0.1), which neither x86 Mac's command overrides getFragmentBufferAddressAtIndex: unsupported reading back what an indirect command was given getFragmentBufferAtIndex: unsupported reading back what an indirect command was given -getFrontFacingWinding metal raises an unrecognized selector, as Metal's base indirect render command does: it sends itself doesNotRecognizeSelector: (read from code, _MTLIndirectRenderCommand, macOS 27.0.1), which neither x86 Mac's command overrides -getMeshBufferAddressAtIndex: metal raises an unrecognized selector, as Metal's base indirect render command does: it sends itself doesNotRecognizeSelector: (read from code, _MTLIndirectRenderCommand, macOS 27.0.1); no command here draws a mesh -getObjectBufferAddressAtIndex: metal raises an unrecognized selector, as Metal's base indirect render command does: it sends itself doesNotRecognizeSelector: (read from code, _MTLIndirectRenderCommand, macOS 27.0.1); no command here draws a mesh -getObjectThreadgroupMemoryLengthAtIndex: metal raises an unrecognized selector, as Metal's base indirect render command does: it sends itself doesNotRecognizeSelector: (read from code, _MTLIndirectRenderCommand, macOS 27.0.1); no command here draws a mesh +getFrontFacingWinding metal raises an unrecognized selector, as Metal's base indirect render command does: it sends itself doesNotRecognizeSelector: (unmeasured: _MTLIndirectRenderCommand, macOS 27.0.1), which neither x86 Mac's command overrides +getMeshBufferAddressAtIndex: metal raises an unrecognized selector, as Metal's base indirect render command does: it sends itself doesNotRecognizeSelector: (unmeasured: _MTLIndirectRenderCommand, macOS 27.0.1); no command here draws a mesh +getObjectBufferAddressAtIndex: metal raises an unrecognized selector, as Metal's base indirect render command does: it sends itself doesNotRecognizeSelector: (unmeasured: _MTLIndirectRenderCommand, macOS 27.0.1); no command here draws a mesh +getObjectThreadgroupMemoryLengthAtIndex: metal raises an unrecognized selector, as Metal's base indirect render command does: it sends itself doesNotRecognizeSelector: (unmeasured: _MTLIndirectRenderCommand, macOS 27.0.1); no command here draws a mesh getOptimizedStatus unsupported reading back what an indirect command was given getPipelineStateUniqueIdentifier unsupported reading back what an indirect command was given -getScissorRects metal raises an unrecognized selector, as Metal's base indirect render command does: it sends itself doesNotRecognizeSelector: (read from code, _MTLIndirectRenderCommand, macOS 27.0.1), which neither x86 Mac's command overrides -getStencilReferenceValues metal raises an unrecognized selector, as Metal's base indirect render command does: it sends itself doesNotRecognizeSelector: (read from code, _MTLIndirectRenderCommand, macOS 27.0.1), which neither x86 Mac's command overrides +getScissorRects metal raises an unrecognized selector, as Metal's base indirect render command does: it sends itself doesNotRecognizeSelector: (unmeasured: _MTLIndirectRenderCommand, macOS 27.0.1), which neither x86 Mac's command overrides +getStencilReferenceValues metal raises an unrecognized selector, as Metal's base indirect render command does: it sends itself doesNotRecognizeSelector: (unmeasured: _MTLIndirectRenderCommand, macOS 27.0.1), which neither x86 Mac's command overrides getTessellationFactorArguments unsupported reading back what an indirect command was given -getTriangleFillMode metal raises an unrecognized selector, as Metal's base indirect render command does: it sends itself doesNotRecognizeSelector: (read from code, _MTLIndirectRenderCommand, macOS 27.0.1), which neither x86 Mac's command overrides +getTriangleFillMode metal raises an unrecognized selector, as Metal's base indirect render command does: it sends itself doesNotRecognizeSelector: (unmeasured: _MTLIndirectRenderCommand, macOS 27.0.1), which neither x86 Mac's command overrides getVertexAttributeStrideAtIndex: unsupported reading back what an indirect command was given getVertexBufferAddressAtIndex: unsupported reading back what an indirect command was given getVertexBufferAtIndex: unsupported reading back what an indirect command was given -getViewports metal raises an unrecognized selector, as Metal's base indirect render command does: it sends itself doesNotRecognizeSelector: (read from code, _MTLIndirectRenderCommand, macOS 27.0.1), which neither x86 Mac's command overrides +getViewports metal raises an unrecognized selector, as Metal's base indirect render command does: it sends itself doesNotRecognizeSelector: (unmeasured: _MTLIndirectRenderCommand, macOS 27.0.1), which neither x86 Mac's command overrides hasBarrier unsupported reading back what an indirect command was given -setBlendColorRed:green:blue:alpha: metal raises an unrecognized selector, as Metal's base indirect render command does: it sends itself doesNotRecognizeSelector: (read from code, _MTLIndirectRenderCommand, macOS 27.0.1), which neither x86 Mac's command overrides -setDepthTestMinBound:maxBound: metal raises an unrecognized selector, as Metal's base indirect render command does: it sends itself doesNotRecognizeSelector: (read from code, _MTLIndirectRenderCommand, macOS 27.0.1), which neither x86 Mac's command overrides -setScissorRect: metal raises an unrecognized selector, as Metal's base indirect render command does: it sends itself doesNotRecognizeSelector: (read from code, _MTLIndirectRenderCommand, macOS 27.0.1), which neither x86 Mac's command overrides -setScissorRects:count: metal raises an unrecognized selector, as Metal's base indirect render command does: it sends itself doesNotRecognizeSelector: (read from code, _MTLIndirectRenderCommand, macOS 27.0.1), which neither x86 Mac's command overrides -setStencilFrontReferenceValue:backReferenceValue: metal raises an unrecognized selector, as Metal's base indirect render command does: it sends itself doesNotRecognizeSelector: (read from code, _MTLIndirectRenderCommand, macOS 27.0.1), which neither x86 Mac's command overrides -setStencilReferenceValue: metal raises an unrecognized selector, as Metal's base indirect render command does: it sends itself doesNotRecognizeSelector: (read from code, _MTLIndirectRenderCommand, macOS 27.0.1), which neither x86 Mac's command overrides -setToolsDispatchBufferSPI:atIndex:stages: metal raises an unrecognized selector, as Metal's base indirect render command does: it sends itself doesNotRecognizeSelector: (read from code, _MTLIndirectRenderCommand, macOS 27.0.1), which neither x86 Mac's command overrides -setViewport: metal raises an unrecognized selector, as Metal's base indirect render command does: it sends itself doesNotRecognizeSelector: (read from code, _MTLIndirectRenderCommand, macOS 27.0.1), which neither x86 Mac's command overrides -setViewports:count: metal raises an unrecognized selector, as Metal's base indirect render command does: it sends itself doesNotRecognizeSelector: (read from code, _MTLIndirectRenderCommand, macOS 27.0.1), which neither x86 Mac's command overrides +setBlendColorRed:green:blue:alpha: metal raises an unrecognized selector, as Metal's base indirect render command does: it sends itself doesNotRecognizeSelector: (unmeasured: _MTLIndirectRenderCommand, macOS 27.0.1), which neither x86 Mac's command overrides +setDepthTestMinBound:maxBound: metal raises an unrecognized selector, as Metal's base indirect render command does: it sends itself doesNotRecognizeSelector: (unmeasured: _MTLIndirectRenderCommand, macOS 27.0.1), which neither x86 Mac's command overrides +setScissorRect: metal raises an unrecognized selector, as Metal's base indirect render command does: it sends itself doesNotRecognizeSelector: (unmeasured: _MTLIndirectRenderCommand, macOS 27.0.1), which neither x86 Mac's command overrides +setScissorRects:count: metal raises an unrecognized selector, as Metal's base indirect render command does: it sends itself doesNotRecognizeSelector: (unmeasured: _MTLIndirectRenderCommand, macOS 27.0.1), which neither x86 Mac's command overrides +setStencilFrontReferenceValue:backReferenceValue: metal raises an unrecognized selector, as Metal's base indirect render command does: it sends itself doesNotRecognizeSelector: (unmeasured: _MTLIndirectRenderCommand, macOS 27.0.1), which neither x86 Mac's command overrides +setStencilReferenceValue: metal raises an unrecognized selector, as Metal's base indirect render command does: it sends itself doesNotRecognizeSelector: (unmeasured: _MTLIndirectRenderCommand, macOS 27.0.1), which neither x86 Mac's command overrides +setToolsDispatchBufferSPI:atIndex:stages: metal raises an unrecognized selector, as Metal's base indirect render command does: it sends itself doesNotRecognizeSelector: (unmeasured: _MTLIndirectRenderCommand, macOS 27.0.1), which neither x86 Mac's command overrides +setViewport: metal raises an unrecognized selector, as Metal's base indirect render command does: it sends itself doesNotRecognizeSelector: (unmeasured: _MTLIndirectRenderCommand, macOS 27.0.1), which neither x86 Mac's command overrides +setViewports:count: metal raises an unrecognized selector, as Metal's base indirect render command does: it sends itself doesNotRecognizeSelector: (unmeasured: _MTLIndirectRenderCommand, macOS 27.0.1), which neither x86 Mac's command overrides [RgfxLibrary] bitcodeData implemented externFunctionNames implemented @@ -1753,10 +1756,10 @@ setShaderValidationEnabled: implemented shaderValidationEnabled implemented [RgfxParallelRenderCommandEncoder] endEncodingAndRetrieveProgramAddressTable implemented -insertSplit metal raises an unrecognized selector, as Metal's base parallel encoder does: it sends itself doesNotRecognizeSelector: (read from code, %enc-base) -sampledRenderCommandEncoderWithProgramInfoBuffer:capacity: metal nil, as the buffer's sampledRenderCommandEncoderWithDescriptor:programInfoBuffer:capacity: answers: Metal's base parallel encoder makes its sampled sub-encoder with that (read from code, %enc-base); the device samples no counters -separateCommits metal NO, as Metal's IOAccel parallel encoder answers (read from code, MTLIOAccelParallelRenderCommandEncoder, macOS 27.0.1) -setSeparateCommits: metal does nothing, as Metal's IOAccel parallel encoder does (read from code, MTLIOAccelParallelRenderCommandEncoder, macOS 27.0.1) +insertSplit metal raises an unrecognized selector, as Metal's base parallel encoder does: it sends itself doesNotRecognizeSelector: (unmeasured, %enc-base) +sampledRenderCommandEncoderWithProgramInfoBuffer:capacity: metal nil, as the buffer's sampledRenderCommandEncoderWithDescriptor:programInfoBuffer:capacity: answers: Metal's base parallel encoder makes its sampled sub-encoder with that (unmeasured, %enc-base); the device samples no counters +separateCommits metal NO, as Metal's IOAccel parallel encoder answers (unmeasured: MTLIOAccelParallelRenderCommandEncoder, macOS 27.0.1) +setSeparateCommits: metal does nothing, as Metal's IOAccel parallel encoder does (unmeasured: MTLIOAccelParallelRenderCommandEncoder, macOS 27.0.1) [RgfxRasterizationRateMap] formattedDescription: implemented minFactor implemented @@ -1771,8 +1774,8 @@ dispatchThreadsPerTile:inRegion:withRenderTargetArrayIndex:withCondition: absent dispatchThreadsPerTile:withCondition: absent %spi-neither enableNullBufferBinds: absent %spi-neither endEncodingAndRetrieveProgramAddressTable implemented -insertSplit metal raises an unrecognized selector, as Metal's base encoder does: it sends itself doesNotRecognizeSelector: (read from code, %enc-base) -isMemorylessRender metal NO, as Metal's IOAccel render encoder, MTLIOAccelRenderCommandEncoder, answers (read from code: macOS 27.0.1's Metal on the M3 Max) +insertSplit metal raises an unrecognized selector, as Metal's base encoder does: it sends itself doesNotRecognizeSelector: (unmeasured, %enc-base) +isMemorylessRender metal NO, as Metal's IOAccel render encoder, MTLIOAccelRenderCommandEncoder, answers (unmeasured: macOS 27.0.1's Metal on the M3 Max) resetTileCondition absent %spi-neither setAlphaTestReferenceValue: absent %spi-neither setClipPlane:p2:p3:p4:atIndex: absent %spi-neither @@ -1803,7 +1806,7 @@ setProvokingVertexMode: implemented setStencilCleared gap what Metal's encoder does with it is not established; this does nothing setStencilResolveTexture:slice:depthPlane:level: absent %spi-neither setStencilResolveTexture:slice:depthPlane:level:yInvert: absent %spi-neither -setToolsDispatchBufferSPI:atIndex:stages: metal raises an unrecognized selector, as Metal's IOAccel render encoder does: it sends itself doesNotRecognizeSelector: (read from code, %enc-base) +setToolsDispatchBufferSPI:atIndex:stages: metal raises an unrecognized selector, as Metal's IOAccel render encoder does: it sends itself doesNotRecognizeSelector: (unmeasured, %enc-base) setTransformFeedbackState: absent %spi-neither setTriangleFrontFillMode:backFillMode: absent %spi-neither setVertexAmplificationMode:value: unsupported a vertex amplification mode @@ -1813,35 +1816,35 @@ useResidencySet: partial %x86-residency useResidencySets:count: partial %x86-residency useResourceGroup:usage:stages: absent %spi-neither [RgfxRenderPipelineState] -emulationMeshMaxPrimitiveCount metal 0, as both x86 Macs' fresh pipeline answers (%spi-answers) and Metal's base pipeline answers until its emulation is set up (read from code, %pipe-base): no pipeline of the device emulates mesh shaders -emulationMeshMaxVertexCount metal 0, as both x86 Macs' fresh pipeline answers (%spi-answers) and Metal's base pipeline answers until its emulation is set up (read from code, %pipe-base): no pipeline of the device emulates mesh shaders -emulationMeshPrefixSum1PSO metal nil, as both x86 Macs' fresh pipeline answers (%spi-answers) and Metal's base pipeline answers until its emulation is set up (read from code, %pipe-base): no pipeline of the device emulates mesh shaders -emulationMeshPrefixSum2PSO metal nil, as both x86 Macs' fresh pipeline answers (%spi-answers) and Metal's base pipeline answers until its emulation is set up (read from code, %pipe-base): no pipeline of the device emulates mesh shaders -emulationMeshPrefixSum3PSO metal nil, as both x86 Macs' fresh pipeline answers (%spi-answers) and Metal's base pipeline answers until its emulation is set up (read from code, %pipe-base): no pipeline of the device emulates mesh shaders -emulationMeshShaderIntermediateBufferSlot metal 0, as both x86 Macs' fresh pipeline answers (%spi-answers) and Metal's base pipeline answers until its emulation is set up (read from code, %pipe-base): no pipeline of the device emulates mesh shaders -emulationMeshShaderPSO metal nil, as both x86 Macs' fresh pipeline answers (%spi-answers) and Metal's base pipeline answers until its emulation is set up (read from code, %pipe-base): no pipeline of the device emulates mesh shaders -emulationMeshSize metal 0, as both x86 Macs' fresh pipeline answers (%spi-answers) and Metal's base pipeline answers until its emulation is set up (read from code, %pipe-base): no pipeline of the device emulates mesh shaders -emulationNoObjectPrefixSumPSO metal nil, as both x86 Macs' fresh pipeline answers (%spi-answers) and Metal's base pipeline answers until its emulation is set up (read from code, %pipe-base): no pipeline of the device emulates mesh shaders -emulationObjectPrefixSumPSO metal nil, as both x86 Macs' fresh pipeline answers (%spi-answers) and Metal's base pipeline answers until its emulation is set up (read from code, %pipe-base): no pipeline of the device emulates mesh shaders -emulationObjectShaderIntermediateBufferSlot metal 0, as both x86 Macs' fresh pipeline answers (%spi-answers) and Metal's base pipeline answers until its emulation is set up (read from code, %pipe-base): no pipeline of the device emulates mesh shaders -emulationObjectShaderPSO metal nil, as both x86 Macs' fresh pipeline answers (%spi-answers) and Metal's base pipeline answers until its emulation is set up (read from code, %pipe-base): no pipeline of the device emulates mesh shaders -emulationPayloadMemoryLength metal 0, as both x86 Macs' fresh pipeline answers (%spi-answers) and Metal's base pipeline answers until its emulation is set up (read from code, %pipe-base): no pipeline of the device emulates mesh shaders -emulationPrimitiveTopology metal 0, as both x86 Macs' fresh pipeline answers (%spi-answers) and Metal's base pipeline answers until its emulation is set up (read from code, %pipe-base): no pipeline of the device emulates mesh shaders -emulationVertexShaderIntermediateBufferSlot metal 0, as both x86 Macs' fresh pipeline answers (%spi-answers) and Metal's base pipeline answers until its emulation is set up (read from code, %pipe-base): no pipeline of the device emulates mesh shaders +emulationMeshMaxPrimitiveCount metal 0, as both x86 Macs' fresh pipeline answers (%spi-answers) and Metal's base pipeline answers until its emulation is set up (unmeasured, %pipe-base): no pipeline of the device emulates mesh shaders +emulationMeshMaxVertexCount metal 0, as both x86 Macs' fresh pipeline answers (%spi-answers) and Metal's base pipeline answers until its emulation is set up (unmeasured, %pipe-base): no pipeline of the device emulates mesh shaders +emulationMeshPrefixSum1PSO metal nil, as both x86 Macs' fresh pipeline answers (%spi-answers) and Metal's base pipeline answers until its emulation is set up (unmeasured, %pipe-base): no pipeline of the device emulates mesh shaders +emulationMeshPrefixSum2PSO metal nil, as both x86 Macs' fresh pipeline answers (%spi-answers) and Metal's base pipeline answers until its emulation is set up (unmeasured, %pipe-base): no pipeline of the device emulates mesh shaders +emulationMeshPrefixSum3PSO metal nil, as both x86 Macs' fresh pipeline answers (%spi-answers) and Metal's base pipeline answers until its emulation is set up (unmeasured, %pipe-base): no pipeline of the device emulates mesh shaders +emulationMeshShaderIntermediateBufferSlot metal 0, as both x86 Macs' fresh pipeline answers (%spi-answers) and Metal's base pipeline answers until its emulation is set up (unmeasured, %pipe-base): no pipeline of the device emulates mesh shaders +emulationMeshShaderPSO metal nil, as both x86 Macs' fresh pipeline answers (%spi-answers) and Metal's base pipeline answers until its emulation is set up (unmeasured, %pipe-base): no pipeline of the device emulates mesh shaders +emulationMeshSize metal 0, as both x86 Macs' fresh pipeline answers (%spi-answers) and Metal's base pipeline answers until its emulation is set up (unmeasured, %pipe-base): no pipeline of the device emulates mesh shaders +emulationNoObjectPrefixSumPSO metal nil, as both x86 Macs' fresh pipeline answers (%spi-answers) and Metal's base pipeline answers until its emulation is set up (unmeasured, %pipe-base): no pipeline of the device emulates mesh shaders +emulationObjectPrefixSumPSO metal nil, as both x86 Macs' fresh pipeline answers (%spi-answers) and Metal's base pipeline answers until its emulation is set up (unmeasured, %pipe-base): no pipeline of the device emulates mesh shaders +emulationObjectShaderIntermediateBufferSlot metal 0, as both x86 Macs' fresh pipeline answers (%spi-answers) and Metal's base pipeline answers until its emulation is set up (unmeasured, %pipe-base): no pipeline of the device emulates mesh shaders +emulationObjectShaderPSO metal nil, as both x86 Macs' fresh pipeline answers (%spi-answers) and Metal's base pipeline answers until its emulation is set up (unmeasured, %pipe-base): no pipeline of the device emulates mesh shaders +emulationPayloadMemoryLength metal 0, as both x86 Macs' fresh pipeline answers (%spi-answers) and Metal's base pipeline answers until its emulation is set up (unmeasured, %pipe-base): no pipeline of the device emulates mesh shaders +emulationPrimitiveTopology metal 0, as both x86 Macs' fresh pipeline answers (%spi-answers) and Metal's base pipeline answers until its emulation is set up (unmeasured, %pipe-base): no pipeline of the device emulates mesh shaders +emulationVertexShaderIntermediateBufferSlot metal 0, as both x86 Macs' fresh pipeline answers (%spi-answers) and Metal's base pipeline answers until its emulation is set up (unmeasured, %pipe-base): no pipeline of the device emulates mesh shaders explicitVisibilityGroupID metal 0, as both x86 Macs' fresh pipeline answers (%spi-answers); the device makes no visibility groups -fragmentDebugInstrumentationData metal nil, as Metal's base pipeline answers for one made without debug instrumentation (read from code, %pipe-base; %spi-answers): the device instruments no shader +fragmentDebugInstrumentationData metal nil, as Metal's base pipeline answers for one made without debug instrumentation (unmeasured, %pipe-base; %spi-answers): the device instruments no shader fragmentFunctionHandleWithFunction: unsupported function pointers -fragmentGlobalConstantsBase metal 0, as Metal's base pipeline answers for every pipeline (read from code, %pipe-base; %spi-answers) -fragmentGlobalConstantsSize metal 0, as Metal's base pipeline answers for every pipeline (read from code, %pipe-base; %spi-answers) -functionReflectionWithFunctionDescriptor:stage: metal raises an unrecognized selector, as Metal's base pipeline does: it sends itself doesNotRecognizeSelector: (read from code, %pipe-base) -getFragmentShaderTelemetryID metal the low 32 bits of uniqueIdentifier, as Metal's base pipeline and the AMD 5300M's answer (read from code, %pipe-base; %spi-answers; the Intel 630's answers 0) -getVertexShaderTelemetryID metal the low 32 bits of uniqueIdentifier, as Metal's base pipeline and the AMD 5300M's answer (read from code, %pipe-base; %spi-answers; the Intel 630's answers 0) +fragmentGlobalConstantsBase metal 0, as Metal's base pipeline answers for every pipeline (unmeasured, %pipe-base; %spi-answers) +fragmentGlobalConstantsSize metal 0, as Metal's base pipeline answers for every pipeline (unmeasured, %pipe-base; %spi-answers) +functionReflectionWithFunctionDescriptor:stage: metal raises an unrecognized selector, as Metal's base pipeline does: it sends itself doesNotRecognizeSelector: (unmeasured, %pipe-base) +getFragmentShaderTelemetryID metal the low 32 bits of uniqueIdentifier, as Metal's base pipeline and the AMD 5300M's answer (unmeasured, %pipe-base; %spi-answers; the Intel 630's answers 0) +getVertexShaderTelemetryID metal the low 32 bits of uniqueIdentifier, as Metal's base pipeline and the AMD 5300M's answer (unmeasured, %pipe-base; %spi-answers; the Intel 630's answers 0) gpuAddress metal 0 for every pipeline, one that supports indirect command buffers too, as Metal's answer (measured: M3 Max, macOS 27) -gpuHandle metal resourceIndex, as Metal's base pipeline answers (read from code, %pipe-base; %spi-answers) -meshDebugInstrumentationData metal nil, as Metal's base pipeline answers for one made without debug instrumentation (read from code, %pipe-base; %spi-answers): the device instruments no shader +gpuHandle metal resourceIndex, as Metal's base pipeline answers (unmeasured, %pipe-base; %spi-answers) +meshDebugInstrumentationData metal nil, as Metal's base pipeline answers for one made without debug instrumentation (unmeasured, %pipe-base; %spi-answers): the device instruments no shader meshFunctionHandleWithFunction: unsupported function pointers -meshGlobalConstantsBase metal 0, as Metal's base pipeline answers for every pipeline (read from code, %pipe-base; %spi-answers) -meshGlobalConstantsSize metal 0, as Metal's base pipeline answers for every pipeline (read from code, %pipe-base; %spi-answers) +meshGlobalConstantsBase metal 0, as Metal's base pipeline answers for every pipeline (unmeasured, %pipe-base; %spi-answers) +meshGlobalConstantsSize metal 0, as Metal's base pipeline answers for every pipeline (unmeasured, %pipe-base; %spi-answers) newFragmentIntersectionFunctionTableWithDescriptor: implemented newFragmentShaderDebugInfo unsupported a shader's debug info newMeshIntersectionFunctionTableWithDescriptor: implemented @@ -1856,13 +1859,13 @@ newVisibleFunctionTableFromMeshStageWithDescriptor: implemented newVisibleFunctionTableFromObjectStageWithDescriptor: implemented newVisibleFunctionTableFromTileStageWithDescriptor: implemented newVisibleFunctionTableFromVertexStageWithDescriptor: implemented -objectDebugInstrumentationData metal nil, as Metal's base pipeline answers for one made without debug instrumentation (read from code, %pipe-base; %spi-answers): the device instruments no shader +objectDebugInstrumentationData metal nil, as Metal's base pipeline answers for one made without debug instrumentation (unmeasured, %pipe-base; %spi-answers): the device instruments no shader objectFunctionHandleWithFunction: unsupported function pointers -objectGlobalConstantsBase metal 0, as Metal's base pipeline answers for every pipeline (read from code, %pipe-base; %spi-answers) -objectGlobalConstantsSize metal 0, as Metal's base pipeline answers for every pipeline (read from code, %pipe-base; %spi-answers) -pipelineBinaries metal an empty dictionary, as Metal's base pipeline answers for every pipeline (read from code, %pipe-base; %spi-answers) -reflectionForFunctionDescriptor: metal raises an unrecognized selector, as Metal's base pipeline does: it sends itself doesNotRecognizeSelector: (read from code, %pipe-base) -resourceIndex metal gpuResourceID's value: Metal's base pipeline answers gpuResourceID with gpuHandle, and gpuHandle with resourceIndex (read from code, %pipe-base); both x86 Macs' fresh pipeline answers its uniqueIdentifier (%spi-answers) +objectGlobalConstantsBase metal 0, as Metal's base pipeline answers for every pipeline (unmeasured, %pipe-base; %spi-answers) +objectGlobalConstantsSize metal 0, as Metal's base pipeline answers for every pipeline (unmeasured, %pipe-base; %spi-answers) +pipelineBinaries metal an empty dictionary, as Metal's base pipeline answers for every pipeline (unmeasured, %pipe-base; %spi-answers) +reflectionForFunctionDescriptor: metal raises an unrecognized selector, as Metal's base pipeline does: it sends itself doesNotRecognizeSelector: (unmeasured, %pipe-base) +resourceIndex metal gpuResourceID's value: Metal's base pipeline answers gpuResourceID with gpuHandle, and gpuHandle with resourceIndex (unmeasured, %pipe-base); both x86 Macs' fresh pipeline answers its uniqueIdentifier (%spi-answers) setEmulationMeshMaxPrimitiveCount: unsupported Metal's mesh shader emulation (the host draws mesh pipelines) setEmulationMeshMaxVertexCount: unsupported Metal's mesh shader emulation (the host draws mesh pipelines) setEmulationMeshShaderIntermediateBufferSlot: unsupported Metal's mesh shader emulation (the host draws mesh pipelines) @@ -1873,19 +1876,19 @@ setEmulationObjectShaderPSO: unsupported Metal's mesh shader emulation (the host setEmulationPayloadMemoryLength: unsupported Metal's mesh shader emulation (the host draws mesh pipelines) setEmulationPrimitiveTopology: unsupported Metal's mesh shader emulation (the host draws mesh pipelines) setEmulationVertexShaderIntermediateBufferSlot: unsupported Metal's mesh shader emulation (the host draws mesh pipelines) -setUsesMeshShaderEmulation: metal does nothing: Metal's base pipeline stores a flag its usesMeshShaderEmulation does not read, answering from its emulation properties instead (read from code, %pipe-base) -shaderValidationState metal MTLShaderValidationDisabled, as Metal's base pipeline answers for every pipeline (read from code, %pipe-base; %spi-answers) and shaderValidation answers (%no-validation) +setUsesMeshShaderEmulation: metal does nothing: Metal's base pipeline stores a flag its usesMeshShaderEmulation does not read, answering from its emulation properties instead (unmeasured, %pipe-base) +shaderValidationState metal MTLShaderValidationDisabled, as Metal's base pipeline answers for every pipeline (unmeasured, %pipe-base; %spi-answers) and shaderValidation answers (%no-validation) textureWriteRoundingMode implemented -tileDebugInstrumentationData metal nil, as Metal's base pipeline answers for one made without debug instrumentation (read from code, %pipe-base; %spi-answers): the device instruments no shader +tileDebugInstrumentationData metal nil, as Metal's base pipeline answers for one made without debug instrumentation (unmeasured, %pipe-base; %spi-answers): the device instruments no shader tileFunctionHandleWithFunction: unsupported function pointers -tileGlobalConstantsBase metal 0, as Metal's base pipeline answers for every pipeline (read from code, %pipe-base; %spi-answers) -tileGlobalConstantsSize metal 0, as Metal's base pipeline answers for every pipeline (read from code, %pipe-base; %spi-answers) +tileGlobalConstantsBase metal 0, as Metal's base pipeline answers for every pipeline (unmeasured, %pipe-base; %spi-answers) +tileGlobalConstantsSize metal 0, as Metal's base pipeline answers for every pipeline (unmeasured, %pipe-base; %spi-answers) uniqueIdentifier implemented usesMeshShaderEmulation metal NO, as both x86 Macs' fresh pipeline answers (%spi-answers): the device carries mesh draws to the host, so no pipeline of it emulates mesh shaders -vertexDebugInstrumentationData metal nil, as Metal's base pipeline answers for one made without debug instrumentation (read from code, %pipe-base; %spi-answers): the device instruments no shader +vertexDebugInstrumentationData metal nil, as Metal's base pipeline answers for one made without debug instrumentation (unmeasured, %pipe-base; %spi-answers): the device instruments no shader vertexFunctionHandleWithFunction: unsupported function pointers -vertexGlobalConstantsBase metal 0, as Metal's base pipeline answers for every pipeline (read from code, %pipe-base; %spi-answers) -vertexGlobalConstantsSize metal 0, as Metal's base pipeline answers for every pipeline (read from code, %pipe-base; %spi-answers) +vertexGlobalConstantsBase metal 0, as Metal's base pipeline answers for every pipeline (unmeasured, %pipe-base; %spi-answers) +vertexGlobalConstantsSize metal 0, as Metal's base pipeline answers for every pipeline (unmeasured, %pipe-base; %spi-answers) [RgfxResidencySet] allCommittedAllocations absent %residency-spi currentGeneration absent %residency-spi @@ -1907,13 +1910,13 @@ uniqueIdentifier implemented IOSurfaceSharedEvent implemented enableBarrier absent %spi-neither (asked, tools/oracle/oracle_spi_members.m ask) setEnableBarrier: absent %spi-neither (asked, tools/oracle/oracle_spi_members.m ask) -supportsRollback metal NO, as Metal's base shared event answers (read from code, _MTLSharedEvent, macOS 27.0.1; %spi-answers) +supportsRollback metal NO, as Metal's base shared event answers (unmeasured: _MTLSharedEvent, macOS 27.0.1; %spi-answers) [RgfxTexture] allocationID implemented canGenerateMipmapLevels absent %spi-neither -colorSpaceConversionMatrix metal 0, as Metal's base resource answers (read from code, _MTLResource, macOS 27.0.1) and both x86 Macs' textures answer (%spi-answers): the device converts no colour space -compressionFeedback metal 0, as Metal's IOAccel texture answers (read from code, MTLIOAccelTexture, macOS 27.0.1) and both x86 Macs' textures answer (%spi-answers): the device compresses no texture -compressionFootprint metal 0, as Metal's base resource answers (read from code, _MTLResource, macOS 27.0.1) and both x86 Macs' textures answer (%spi-answers): the device compresses no texture +colorSpaceConversionMatrix metal 0, as Metal's base resource answers (unmeasured: _MTLResource, macOS 27.0.1) and both x86 Macs' textures answer (%spi-answers): the device converts no colour space +compressionFeedback metal 0, as Metal's IOAccel texture answers (unmeasured: MTLIOAccelTexture, macOS 27.0.1) and both x86 Macs' textures answer (%spi-answers): the device compresses no texture +compressionFootprint metal 0, as Metal's base resource answers (unmeasured: _MTLResource, macOS 27.0.1) and both x86 Macs' textures answer (%spi-answers): the device compresses no texture compressionMetadata absent %spi-neither (asked, tools/oracle/oracle_spi_members.m ask) didModifyData implemented doesAliasAllResources:count: implemented diff --git a/guest/bundle/tools/cl_probe.m b/guest/bundle/tools/cl_probe.m index 91bc3c5c8..26224b1f0 100644 --- a/guest/bundle/tools/cl_probe.m +++ b/guest/bundle/tools/cl_probe.m @@ -1,7 +1,7 @@ // cl_probe: the OpenCL devices a process sees, and a kernel run on each: c = a + b over 1024 // floats, read back and checked. The GL renderer an accelerator's IOGLBundleName names has compute -// entry points of its own (gldCreateComputeContext and the programs it builds, read from its -// code), which OpenCL may reach, so a change to that personality may change what OpenCL finds and +// entry points of its own (gldCreateComputeContext and the programs it builds), +// which OpenCL may reach, so a change to that personality may change what OpenCL finds and // runs; this shows it before and after. // // cl_probe every device of every platform, then the run on each diff --git a/guest/bundle/tools/gl_probe.m b/guest/bundle/tools/gl_probe.m index 57d0ae12c..4b29840b0 100644 --- a/guest/bundle/tools/gl_probe.m +++ b/guest/bundle/tools/gl_probe.m @@ -345,8 +345,8 @@ static void print_cf(const char *key, CFTypeRef v) { printf(" %s: %s\n", key, d.UTF8String); } -// What the GL renderer asks of its Metal device as it makes its own device (read from the -// renderer: its features follow these answers): the vendor, and each support query, answered +// What the GL renderer asks of its Metal device as it makes its own device (its features +// follow these answers): the vendor, and each support query, answered // through the runtime so a device that lacks one says so. static void print_renderer_queries(id d) { id obj = (id)d;