Skip to content

Commit 343ddf9

Browse files
committed
fix incorrect check for SPIR-V 1.6 support
1 parent f94d3f0 commit 343ddf9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

layers/12_spirvqueriesemu/emulate.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ struct SLayerContext
292292
}
293293

294294
// Required for devices supporting SPIR-V 1.6.
295-
if (deviceILVersion.find("SPIR-V_1.6")) {
295+
if (deviceILVersion.find("SPIR-V_1.6") != std::string::npos) {
296296
deviceInfo.Capabilities.push_back(spv::CapabilityUniformDecoration);
297297
}
298298

0 commit comments

Comments
 (0)