Fix forward of 1fb5c22bc7: 17 conformance cases declare the access-order notice
The runtime now records simdgroup-access-order for every kernel holding a SIMD-group access pair,
and the kernels of 17 cases hold one, so each replay leg of round 8cd636866a read them divergent at
case/notices ("we announced the degrade notice metal2vulkan-degrade-simdgroup-access-order, which
the case declares nowhere"): bicubic-texel-classes, border-swizzles-{a8unorm,bgra8unorm,r16float,
r8unorm,rg16float,rg8unorm,rgba16float,rgba8unorm}, buffer-bind-off-alignment,
compute-threadgroup-memory-reads-zero, nearest-sample-positions, resolve-store-then-load and
vector-word-phases-{0,4,8,12}. Each of the nine legs (2080, 3090, 5080, hawkpoint, iris, lavapipe,
phoenix, rx550, xtx) listed the same 19 sites outside known-gaps-rt.tsv, every one this notice's
(compute-threadgroup-memory-reads-zero also at case/notices/set and case/notices/counts), and no
other case. Every value site of these cases compared equal or was already a known-gaps row.
- replay::simdgroup_access_order_notice: the declaration, a notice_allowance of the code, as
pixel_sampler_scaling_notice and swizzled_border_notice are. It loosens the notices site alone,
so every value still compares exactly.
- The seven case modules name it in their allowances.
- docs/CONFORMANCE-COVERAGE.md re-derived: unchanged (a notice declaration is no tolerance).
This commit is contained in:
1 parent
be91f9f6cb
commit
2e5854ac3f
8 files changed
+70
-9
No files matched your search
@@ -244,10 +244,13 @@ impl Case for BicubicTexelClasses {
|
||||
|
||||
fn allowances(&self) -> Vec<Allowance> {
|
||||
// The runtime emulates Metal's bicubic footprint and announces that its arithmetic is its
|
||||
// own (`bicubic-filter-arithmetic`): a declaration, which loosens no value.
|
||||
vec![notice_allowance(
|
||||
Degradation::BicubicFilterArithmetic.code(),
|
||||
)]
|
||||
// own (`bicubic-filter-arithmetic`): a declaration, which loosens no value. And the
|
||||
// kernel's SIMD-group access pairs (`crate::replay::simdgroup_access_order_notice`): a
|
||||
// declaration too.
|
||||
vec![
|
||||
notice_allowance(Degradation::BicubicFilterArithmetic.code()),
|
||||
crate::replay::simdgroup_access_order_notice(),
|
||||
]
|
||||
}
|
||||
|
||||
fn shaders(&self) -> Result<Vec<ShaderRef>, String> {
|
||||
|
||||
@@ -303,7 +303,13 @@ impl Case for BorderSwizzles {
|
||||
//
|
||||
// Every row sweeps samplers that read an opaque-black border, which the runtime's
|
||||
// sampler states note on every device (`crate::replay::swizzled_border_notice`).
|
||||
let mut named = vec![crate::replay::pixel_sampler_scaling_notice()];
|
||||
//
|
||||
// And the kernel's SIMD-group access pairs, which the runtime's pipelines note on every
|
||||
// device (`crate::replay::simdgroup_access_order_notice`).
|
||||
let mut named = vec![
|
||||
crate::replay::pixel_sampler_scaling_notice(),
|
||||
crate::replay::simdgroup_access_order_notice(),
|
||||
];
|
||||
let black = (SAMPLERS.iter()).any(|&(_, modes, border)| {
|
||||
crate::replay::reads_opaque_black_border(&sampler_spec(modes, border))
|
||||
});
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
//! one dispatch of 64 threads, every access within 8 KiB buffers, which an Apple M3 Max runs at
|
||||
//! addresses rounded down to a multiple of 4.
|
||||
|
||||
use crate::allowance::Allowance;
|
||||
use crate::case::{made, Abort, Case, Handle, Input, MetalSource, Side};
|
||||
use crate::compute_pass::{ComputePass, ComputeStep, Dispatching};
|
||||
use crate::fixture::{Fixture, METAL_TEXT, RUNTIME_TEXT};
|
||||
@@ -70,6 +71,13 @@ impl Case for BufferBindOffAlignment {
|
||||
MetalSource::Run
|
||||
}
|
||||
|
||||
fn allowances(&self) -> Vec<Allowance> {
|
||||
// One declaration, which loosens no value: a kernel the case runs holds SIMD-group access
|
||||
// pairs, which the runtime's pipelines note on every device
|
||||
// (`crate::replay::simdgroup_access_order_notice`).
|
||||
vec![crate::replay::simdgroup_access_order_notice()]
|
||||
}
|
||||
|
||||
fn shaders(&self) -> Result<Vec<ShaderRef>, String> {
|
||||
let mut shaders = Vec::new();
|
||||
for extension in [RUNTIME_TEXT, METAL_TEXT] {
|
||||
|
||||
@@ -289,11 +289,15 @@ impl Case for NearestPositions {
|
||||
}
|
||||
|
||||
fn allowances(&self) -> Vec<Allowance> {
|
||||
// One declaration and no tolerance: its samples are through a runtime sampler slot, which
|
||||
// Two declarations and no tolerance: its samples are through a runtime sampler slot, which
|
||||
// the runtime's pipelines note as scaled (`crate::replay::pixel_sampler_scaling_notice`
|
||||
// holds why, and the run it rests on). It loosens the notices site alone, so every value
|
||||
// this case reads still compares exactly.
|
||||
vec![crate::replay::pixel_sampler_scaling_notice()]
|
||||
// holds why, and the run it rests on), and its kernel holds SIMD-group access pairs
|
||||
// (`crate::replay::simdgroup_access_order_notice`). They loosen the notices site alone,
|
||||
// so every value this case reads still compares exactly.
|
||||
vec![
|
||||
crate::replay::pixel_sampler_scaling_notice(),
|
||||
crate::replay::simdgroup_access_order_notice(),
|
||||
]
|
||||
}
|
||||
|
||||
fn shaders(&self) -> Result<Vec<ShaderRef>, String> {
|
||||
|
||||
@@ -64,6 +64,7 @@
|
||||
//! samples of the format refuses the target and the suite counts the case
|
||||
//! [`LacksFeature`](crate::verdict::Verdict::LacksFeature).
|
||||
|
||||
use crate::allowance::Allowance;
|
||||
use crate::case::{call, made, Abort, Case, Failure, Handle, Input, MetalSource, Side};
|
||||
use crate::fixture::{Fixture, METAL_TEXT, RUNTIME_TEXT};
|
||||
use crate::recording::ShaderRef;
|
||||
@@ -338,6 +339,13 @@ impl Case for ResolveThenLoad {
|
||||
MetalSource::Run
|
||||
}
|
||||
|
||||
fn allowances(&self) -> Vec<Allowance> {
|
||||
// One declaration, which loosens no value: a kernel the case runs holds SIMD-group access
|
||||
// pairs, which the runtime's pipelines note on every device
|
||||
// (`crate::replay::simdgroup_access_order_notice`).
|
||||
vec![crate::replay::simdgroup_access_order_notice()]
|
||||
}
|
||||
|
||||
fn record_runs(&self) -> u32 {
|
||||
RUNS
|
||||
}
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
//! compares exactly. Nothing here can fault a GPU: one pass of six dispatches, every access inside
|
||||
//! the threadgroup's own memory or the output's 16 bytes, loops bounded by the array's words.
|
||||
|
||||
use crate::allowance::Allowance;
|
||||
use crate::case::{made, Abort, Case, Failure, Handle, Input, MetalSource, Side};
|
||||
use crate::compute_pass::{ComputePass, ComputeStep, Dispatching};
|
||||
use crate::fixture::{Fixture, METAL_TEXT, RUNTIME_TEXT};
|
||||
@@ -98,6 +99,13 @@ impl Case for ThreadgroupStart {
|
||||
MetalSource::Run
|
||||
}
|
||||
|
||||
fn allowances(&self) -> Vec<Allowance> {
|
||||
// One declaration, which loosens no value: a kernel the case runs holds SIMD-group access
|
||||
// pairs, which the runtime's pipelines note on every device
|
||||
// (`crate::replay::simdgroup_access_order_notice`).
|
||||
vec![crate::replay::simdgroup_access_order_notice()]
|
||||
}
|
||||
|
||||
fn shaders(&self) -> Result<Vec<ShaderRef>, String> {
|
||||
let mut shaders = Vec::new();
|
||||
for extension in [RUNTIME_TEXT, METAL_TEXT] {
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
//! device, and every byte compares exactly. Nothing here can fault a GPU: one pass of two
|
||||
//! dispatches of 64 threads, each access inside its buffer, no loop.
|
||||
|
||||
use crate::allowance::Allowance;
|
||||
use crate::case::{made, Abort, Case, Failure, Input, MetalSource, Side};
|
||||
use crate::compute_pass::{ComputePass, ComputeStep, Dispatching};
|
||||
use crate::fixture::{Fixture, METAL_TEXT, RUNTIME_TEXT};
|
||||
@@ -120,6 +121,13 @@ impl Case for VectorWordPhases {
|
||||
MetalSource::Run
|
||||
}
|
||||
|
||||
fn allowances(&self) -> Vec<Allowance> {
|
||||
// One declaration, which loosens no value: a kernel the case runs holds SIMD-group access
|
||||
// pairs, which the runtime's pipelines note on every device
|
||||
// (`crate::replay::simdgroup_access_order_notice`).
|
||||
vec![crate::replay::simdgroup_access_order_notice()]
|
||||
}
|
||||
|
||||
fn shaders(&self) -> Result<Vec<ShaderRef>, String> {
|
||||
let mut shaders = Vec::new();
|
||||
for entry in [WORDS, VEC16] {
|
||||
|
||||
@@ -354,6 +354,22 @@ pub fn pixel_sampler_scaling_notice() -> crate::allowance::Allowance {
|
||||
notice_allowance(crate::degradation::Degradation::PixelSamplerScaling.code())
|
||||
}
|
||||
|
||||
/// The declaration a case needs where a kernel it runs holds a SIMD-group access pair:
|
||||
/// `simdgroup-access-order` ([`crate::degradation::Degradation::SimdgroupAccessOrder`]), the
|
||||
/// static note of a kernel holding two accesses of threadgroup or device memory, at least one a
|
||||
/// write, that the translator does not find disjoint between two threads of one SIMD-group, with
|
||||
/// no barrier or atomic between them. Under the identity domains of `metal2vulkan-runtime` no
|
||||
/// such pair is ordered, as documented Metal orders none (docs/API.md, accepted differences, "The
|
||||
/// threads of a SIMD-group run in no order between barriers"), so the runtime records the note for
|
||||
/// every such kernel, on every device.
|
||||
///
|
||||
/// A declaration, like every [`notice_allowance`]: it loosens the notices site alone, and every
|
||||
/// value still compares exactly. A case whose words are lockstep's alone loosens them by the note
|
||||
/// too (`simdgroup_lockstep`).
|
||||
pub fn simdgroup_access_order_notice() -> crate::allowance::Allowance {
|
||||
notice_allowance(crate::degradation::Degradation::SimdgroupAccessOrder.code())
|
||||
}
|
||||
|
||||
/// The slug of `docs/API.md`'s accepted difference that says what the runtime, which presents a
|
||||
/// Mac that keeps no texture compressed, answers, as a Mac with an Intel or AMD GPU does
|
||||
/// ([`without_compression`]): "The runtime answers as a Mac that keeps no texture compressed".
|
||||
|
||||
Reference in new issue
Block a user