Skip to content

Commit 24752af

Browse files
cwfitzgeraldjimblandy
authored andcommitted
Suppress VUID-StandaloneSpirv-None-10684
1 parent bb46a7f commit 24752af

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

wgpu-hal/src/vulkan/instance.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,15 @@ unsafe extern "system" fn debug_utils_messenger_callback(
6969
return vk::FALSE;
7070
}
7171

72+
// Silence Vulkan Validation error "VUID-StandaloneSpirv-None-10684".
73+
//
74+
// This is a bug. To prevent massive noise in the tests, lets suppress it for now.
75+
// https://github.com/gfx-rs/wgpu/issues/7696
76+
const VUID_STANDALONESPIRV_NONE_10684: i32 = 0xb210f7c2_u32 as i32;
77+
if cd.message_id_number == VUID_STANDALONESPIRV_NONE_10684 {
78+
return vk::FALSE;
79+
}
80+
7281
let level = match message_severity {
7382
vk::DebugUtilsMessageSeverityFlagsEXT::VERBOSE => log::Level::Debug,
7483
vk::DebugUtilsMessageSeverityFlagsEXT::INFO => log::Level::Info,

0 commit comments

Comments
 (0)