View check test: the committed profile found at run time, as a carried test archive needs
an_answer_with_facts_makes_the_measured_compile_device read lavapipe's committed profile through
env!("CARGO_MANIFEST_DIR"), the building machine's path, so a test archive carried to another node
(the RX 7900 XTX run, um790 job m3-max-38286) panicked reading it. It reads it through
metal2vulkan_devtools::validation_dir(), as the runtime's other profile-reading tests do.
This commit is contained in:
1 parent
462cde3f6c
commit
20844a0232
1 file changed
+1
-2
@@ -153,8 +153,7 @@ fn a_record_reads_back_for_its_identity_alone() {
|
||||
fn an_answer_with_facts_makes_the_measured_compile_device() {
|
||||
use super::{ViewCheck, ViewCosts};
|
||||
use metal2vulkan::device::{Device as CompileDevice, DeviceDescription, DevicePolicy};
|
||||
let path = std::path::Path::new(env!("CARGO_MANIFEST_DIR"))
|
||||
.join("../metal2vulkan-validation/profiles/lavapipe.json");
|
||||
let path = metal2vulkan_devtools::validation_dir().join("profiles/lavapipe.json");
|
||||
let text = std::fs::read_to_string(path).unwrap();
|
||||
let description = DeviceDescription::from_khronos_json(&text, None).unwrap();
|
||||
let policy = DevicePolicy::default();
|
||||
|
||||
Reference in new issue
Block a user