diff --git a/crates/metal2vulkan-conformance/known-gaps-rt.tsv b/crates/metal2vulkan-conformance/known-gaps-rt.tsv index 9970f5234..dfe2cb142 100644 --- a/crates/metal2vulkan-conformance/known-gaps-rt.tsv +++ b/crates/metal2vulkan-conformance/known-gaps-rt.tsv @@ -252,6 +252,7 @@ compressed-views-bc6h-rgb-float * refused case/2d-13x7/work Err({refused: Error: compressed-views-bc6h-rgb-ufloat * refused case/2d-13x7/work Err({refused: Error::Refused("a BC6HRGBFloat view of a BC6HRGBUfloat texture, which Metal does not view it as with its usage"), resource: 1 (0x1)}) An accepted difference: Metal documents no BC6H view between the format's signed and unsigned forms, and rt refuses it typed. MTLTexture.h makes a view "with a different (but compatible) pixel format"; Apple's makeTextureView(pixelFormat:) page lists the compatible groups: "All 8-, 16-, 32-, 64-, and 128-bit color formats are compatible with other formats with the same bit length.", "sRGB and non-sRGB forms of the same compressed format (for example, bc1_rgba and bc1_rgba_srgb)" and a combined depth-stencil format with its stencil view, and a compressed format's other forms are in none. The M3 Max (macOS 27.0.1) made and read the view, its API validation layer on as well. compute-inline-bytes llvmpipe divergent case/inline-then-buffer 10 elements differ (U32), the largest difference 1 The device's own answer (rule 1): the device converts an 8-bit code by the reciprocal product, so a code's value is one `f32` ulp off Metal's. Note `device-texel-conversion`. Open: nothing. compute-imageblock-sizes * refused case/outcome/dispatch_type Err(TheConsumers("an encoder's dispatchType is the argument it was made with: metal2vulkan-runtime keeps no getter and leaves it to its consumer")) refused: the consumer's own (dispatchType). rt takes the dispatch type as the encoder's argument and keeps no getter. +compute-plural-texture-and-sampler-binding llvmpipe divergent case/four-bindings 20 elements differ (U32), the largest difference 1 The device's own answer (rule 1): the device converts an 8-bit code by the reciprocal product, so a code's value is one `f32` ulp off Metal's (the texture and kernel of `compute-inline-bytes`). Note `device-texel-conversion`. Open: nothing. compute-threadgroup-memory-reads-zero * refused case/outcome/dispatch_type Err(TheConsumers("an encoder's dispatchType is the argument it was made with: metal2vulkan-runtime keeps no getter and leaves it to its consumer")) refused: the consumer's own (dispatchType). rt takes the dispatch type as the encoder's argument and keeps no getter. compute-threadgroup-past-metals-limit 780M refused case/dispatch Err(Error::Refused("a threadgroup of [2048, 1, 1] threads is empty or past the state's 1024")) An accepted difference: Metal documents the dispatch as invalid, and rt refuses it typed. MTLComputePipeline.h: maxTotalThreadsPerThreadgroup is "The maximum total number of threads that can be in a single compute threadgroup."; Apple's maxTotalThreadsPerThreadgroup page: "The maximum number of threads in a threadgroup that you can dispatch to the pipeline." The case carries an Apple M4 measurement (macOS 27.0.1): plain Metal ran nothing; Metal's API validation asserts on the dispatch, so the suite does not hand a GPU the shape again. compute-threadgroup-past-metals-limit RX 7900 XTX refused case/dispatch Err(Error::Refused("a threadgroup of [2048, 1, 1] threads is empty or past the state's 1024")) An accepted difference: Metal documents the dispatch as invalid, and rt refuses it typed. MTLComputePipeline.h: maxTotalThreadsPerThreadgroup is "The maximum total number of threads that can be in a single compute threadgroup."; Apple's maxTotalThreadsPerThreadgroup page: "The maximum number of threads in a threadgroup that you can dispatch to the pipeline." The case carries an Apple M4 measurement (macOS 27.0.1): plain Metal ran nothing; Metal's API validation asserts on the dispatch, so the suite does not hand a GPU the shape again. @@ -3580,6 +3581,7 @@ compute-resource-barrier * refused case/outcome/dispatch_type Err(TheConsumers(" compute-resource-residency * refused case/outcome/dispatch_type Err(TheConsumers("an encoder's dispatchType is the argument it was made with: metal2vulkan-runtime keeps no getter and leaves it to its consumer")) refused: the consumer's own (dispatchType). rt takes the dispatch type as the encoder's argument and keeps no getter. compute-scope-barrier * refused case/outcome/dispatch_type Err(TheConsumers("an encoder's dispatchType is the argument it was made with: metal2vulkan-runtime keeps no getter and leaves it to its consumer")) refused: the consumer's own (dispatchType). rt takes the dispatch type as the encoder's argument and keeps no getter. compute-threadgroup-memory-and-grid * refused case/outcome/dispatch_type Err(TheConsumers("an encoder's dispatchType is the argument it was made with: metal2vulkan-runtime keeps no getter and leaves it to its consumer")) refused: the consumer's own (dispatchType). rt takes the dispatch type as the encoder's argument and keeps no getter. +sampler-bind-lod-clamps-kernel * refused case/outcome/dispatch_type Err(TheConsumers("an encoder's dispatchType is the argument it was made with: metal2vulkan-runtime keeps no getter and leaves it to its consumer")) refused: the consumer's own (dispatchType). rt takes the dispatch type as the encoder's argument and keeps no getter. fragment-imageblock-reflection * refused case/options-all-three Err(TheConsumers("metal2vulkan-runtime builds no pipeline reflection and acts on no MTLPipelineOption (FailOnBinaryArchiveMiss, ArgumentInfo, BufferTypeInfo, BindingInfo): its consumer builds reflection from the library's AIR")) refused: the consumer's own (MTLComputePipelineReflection, MTLRenderPipelineReflection, MTLPipelineOptionFailOnBinaryArchiveMiss, MTLPipelineOptionArgumentInfo, MTLPipelineOptionBufferTypeInfo, MTLPipelineOptionBindingInfo). rt builds no reflection and acts on no pipeline option; its consumer builds reflection from the library's AIR. fragment-imageblock-reflection * refused case/options-binding-info Err(TheConsumers("metal2vulkan-runtime builds no pipeline reflection and acts on no MTLPipelineOption (FailOnBinaryArchiveMiss, ArgumentInfo, BufferTypeInfo, BindingInfo): its consumer builds reflection from the library's AIR")) refused: the consumer's own (MTLComputePipelineReflection, MTLRenderPipelineReflection, MTLPipelineOptionFailOnBinaryArchiveMiss, MTLPipelineOptionArgumentInfo, MTLPipelineOptionBufferTypeInfo, MTLPipelineOptionBindingInfo). rt builds no reflection and acts on no pipeline option; its consumer builds reflection from the library's AIR. fragment-imageblock-reflection * refused case/options-binding-info-and-buffer-type-info Err(TheConsumers("metal2vulkan-runtime builds no pipeline reflection and acts on no MTLPipelineOption (FailOnBinaryArchiveMiss, ArgumentInfo, BufferTypeInfo, BindingInfo): its consumer builds reflection from the library's AIR")) refused: the consumer's own (MTLComputePipelineReflection, MTLRenderPipelineReflection, MTLPipelineOptionFailOnBinaryArchiveMiss, MTLPipelineOptionArgumentInfo, MTLPipelineOptionBufferTypeInfo, MTLPipelineOptionBindingInfo). rt builds no reflection and acts on no pipeline option; its consumer builds reflection from the library's AIR. diff --git a/crates/metal2vulkan-conformance/src/cases/sampler_bind_clamps.rs b/crates/metal2vulkan-conformance/src/cases/sampler_bind_clamps.rs index 9fe8dbc84..d9bb26a89 100644 --- a/crates/metal2vulkan-conformance/src/cases/sampler_bind_clamps.rs +++ b/crates/metal2vulkan-conformance/src/cases/sampler_bind_clamps.rs @@ -29,6 +29,7 @@ //! Nothing here can fault a GPU: one pass or one draw a row, every texture read-only and inside //! Metal's limits, no loop. +use crate::allowance::Allowance; use crate::case::{ call, drawn_or_refused, made, Abort, Case, Failure, Handle, Input, MetalSource, SamplerSpec, Side, @@ -501,6 +502,13 @@ impl Case for KernelBinds { shader_refs(&[KERNEL]) } + /// No value is loosened. The function samples through the runtime sampler at slot 0, which + /// the runtime's pipelines note as scaled (`replay::pixel_sampler_scaling_notice`); measured + /// firing on lavapipe through the rt side. + fn allowances(&self) -> Vec { + vec![crate::replay::pixel_sampler_scaling_notice()] + } + fn inputs(&self) -> Result, String> { let mut inputs = shared_inputs(&[KERNEL])?; inputs.push(Input::bytes("buffer:params", &kernel_params())); @@ -570,6 +578,13 @@ impl Case for FragmentBinds { shader_refs(&[VERTEX, FRAGMENT]) } + /// No value is loosened. The function samples through the runtime sampler at slot 0, which + /// the runtime's pipelines note as scaled (`replay::pixel_sampler_scaling_notice`); measured + /// firing on lavapipe through the rt side. + fn allowances(&self) -> Vec { + vec![crate::replay::pixel_sampler_scaling_notice()] + } + fn inputs(&self) -> Result, String> { let mut inputs = shared_inputs(&[VERTEX, FRAGMENT])?; inputs.push(Input::bytes("target", &target_spec().words())); diff --git a/crates/metal2vulkan-validation/profiles/runtime-floor.json b/crates/metal2vulkan-validation/profiles/runtime-floor.json index b1786103a..024784e9d 100644 --- a/crates/metal2vulkan-validation/profiles/runtime-floor.json +++ b/crates/metal2vulkan-validation/profiles/runtime-floor.json @@ -1226,10 +1226,10 @@ "maxDescriptorSetUpdateAfterBindSampledImages": 131072, "maxPerStageDescriptorUpdateAfterBindStorageImages": 131072, "maxDescriptorSetUpdateAfterBindStorageImages": 131072, - "maxPerStageDescriptorUpdateAfterBindSamplers": 12000, - "maxDescriptorSetUpdateAfterBindSamplers": 12000, + "maxPerStageDescriptorUpdateAfterBindSamplers": 24000, + "maxDescriptorSetUpdateAfterBindSamplers": 24000, "maxPerStageUpdateAfterBindResources": 262152, - "maxUpdateAfterBindDescriptorsInAllPools": 274144 + "maxUpdateAfterBindDescriptorsInAllPools": 286144 } } }, diff --git a/docs/CONFORMANCE-COVERAGE.md b/docs/CONFORMANCE-COVERAGE.md index 059c2e2a3..d89a5dfc5 100644 --- a/docs/CONFORMANCE-COVERAGE.md +++ b/docs/CONFORMANCE-COVERAGE.md @@ -42,7 +42,7 @@ Its limits, measured rather than asserted: | committed recordings | 1328 | | distinct SDK items the Metal leg reaches, of any status | 812 | | of those, reached only where this cannot name the family | 5 | -| ledger rows (a case whose gap is recorded) | 7966 | +| ledger rows (a case whose gap is recorded) | 7968 | | declared crossings of the option space (pairs put to Metal at once) | 26 | | declared crossings that are no pair of it (a boolean or numeric field, or one type in two slots) | 30 | @@ -2341,6 +2341,7 @@ A case whose difference from Metal is recorded rather than compared away. The le | `compressed-views-bc6h-rgb-ufloat` | An accepted difference: Metal documents no BC6H view between the format's signed and unsigned forms, and rt refuses it typed. MTLTexture.h makes a view "with a … | | `compute-inline-bytes` | The device's own answer (rule 1): the device converts an 8-bit code by the reciprocal product, so a code's value is one `f32` ulp off Metal's. Note `device-texe… | | `compute-imageblock-sizes` | refused: the consumer's own (dispatchType). rt takes the dispatch type as the encoder's argument and keeps no getter. | +| `compute-plural-texture-and-sampler-binding` | The device's own answer (rule 1): the device converts an 8-bit code by the reciprocal product, so a code's value is one `f32` ulp off Metal's (the texture and k… | | `compute-threadgroup-memory-reads-zero` | refused: the consumer's own (dispatchType). rt takes the dispatch type as the encoder's argument and keeps no getter. | | `compute-threadgroup-past-metals-limit` | An accepted difference: Metal documents the dispatch as invalid, and rt refuses it typed. MTLComputePipeline.h: maxTotalThreadsPerThreadgroup is "The maximum to… | | `compute-threadgroup-past-metals-limit` | An accepted difference: Metal documents the dispatch as invalid, and rt refuses it typed. MTLComputePipeline.h: maxTotalThreadsPerThreadgroup is "The maximum to… | @@ -5625,6 +5626,7 @@ A case whose difference from Metal is recorded rather than compared away. The le | `compute-resource-residency` | refused: the consumer's own (dispatchType). rt takes the dispatch type as the encoder's argument and keeps no getter. | | `compute-scope-barrier` | refused: the consumer's own (dispatchType). rt takes the dispatch type as the encoder's argument and keeps no getter. | | `compute-threadgroup-memory-and-grid` | refused: the consumer's own (dispatchType). rt takes the dispatch type as the encoder's argument and keeps no getter. | +| `sampler-bind-lod-clamps-kernel` | refused: the consumer's own (dispatchType). rt takes the dispatch type as the encoder's argument and keeps no getter. | | `fragment-imageblock-reflection` | refused: the consumer's own (MTLComputePipelineReflection, MTLRenderPipelineReflection, MTLPipelineOptionFailOnBinaryArchiveMiss, MTLPipelineOptionArgumentInfo,… | | `fragment-imageblock-reflection` | refused: the consumer's own (MTLComputePipelineReflection, MTLRenderPipelineReflection, MTLPipelineOptionFailOnBinaryArchiveMiss, MTLPipelineOptionArgumentInfo,… | | `fragment-imageblock-reflection` | refused: the consumer's own (MTLComputePipelineReflection, MTLRenderPipelineReflection, MTLPipelineOptionFailOnBinaryArchiveMiss, MTLPipelineOptionArgumentInfo,… | diff --git a/scripts/regen-device-profiles/regen_device_profiles.py b/scripts/regen-device-profiles/regen_device_profiles.py index 0cbd64cfa..8a01368b8 100755 --- a/scripts/regen-device-profiles/regen_device_profiles.py +++ b/scripts/regen-device-profiles/regen_device_profiles.py @@ -162,10 +162,10 @@ RUNTIME_FLOOR = { "maxDescriptorSetUpdateAfterBindSampledImages": 131072, "maxPerStageDescriptorUpdateAfterBindStorageImages": 131072, "maxDescriptorSetUpdateAfterBindStorageImages": 131072, - "maxPerStageDescriptorUpdateAfterBindSamplers": 12000, - "maxDescriptorSetUpdateAfterBindSamplers": 12000, + "maxPerStageDescriptorUpdateAfterBindSamplers": 24000, + "maxDescriptorSetUpdateAfterBindSamplers": 24000, "maxPerStageUpdateAfterBindResources": 262152, - "maxUpdateAfterBindDescriptorsInAllPools": 274144, + "maxUpdateAfterBindDescriptorsInAllPools": 286144, }, }, }