runtime_lane::linked_signatures: the runtime answers a refusal as Error::Unsupported
The state's creation refuses a shape no adapter passes with the runtime's own Error::Unsupported (Feature::Linking, naming the function), not wrapped in Error::Compile: on lavapipe (m3-max-3412) every made case stored its word and value_for_pointer was refused so, which the test then read as not refused. (cherry picked from commit 4978a0ae40dfb10358624aed63125bcdc4470e61)
This commit is contained in:
1 parent
46be09fae3
commit
48db0cf160
1 file changed
+2
-2
@@ -17,7 +17,7 @@
|
||||
use super::host_memory::{on_device, run};
|
||||
use super::read_buffer;
|
||||
use crate::air_library::AirLibrary;
|
||||
use metal2vulkan::error::{Error as CompileError, Feature};
|
||||
use metal2vulkan::error::Feature;
|
||||
use metal2vulkan::pipeline::{ComputePipelineDescriptor, LinkedFunctions, StageSource};
|
||||
use metal2vulkan_devtools::linked_signatures::{Answer, Case, CASES, STITCHED_PAIR};
|
||||
use metal2vulkan_devtools::stitched;
|
||||
@@ -108,7 +108,7 @@ fn a_reference_of_another_type_computes_by_position() {
|
||||
assert_eq!(got, Ok([w, 0x5e47]), "{}", case.name);
|
||||
}
|
||||
Answer::Refused => match got {
|
||||
Err(Error::Compile(CompileError::Unsupported(u))) => {
|
||||
Err(Error::Unsupported(u)) => {
|
||||
assert_eq!(u.feature, Feature::Linking, "{}: {u}", case.name);
|
||||
}
|
||||
other => panic!("{}: not refused: {other:?}", case.name),
|
||||
|
||||
Reference in new issue
Block a user