diff --git a/DEPS b/DEPS index c0b919df3b..5dd7e114bc 100644 --- a/DEPS +++ b/DEPS @@ -58,17 +58,17 @@ deps = { # SPIRV-Cross 'third_party/spirv-cross': { - 'url': '{chromium_git}/external/github.com/KhronosGroup/SPIRV-Cross@8891bd35120ca91c252a66ccfdc3f9a9d03c70cd', + 'url': '{chromium_git}/external/github.com/KhronosGroup/SPIRV-Cross@be527632a6c80291ab012a79758e0e41224ad5e2', 'condition': 'dawn_standalone', }, # SPIRV compiler dependencies: SPIRV-Tools, SPIRV-headers, glslang and shaderc 'third_party/SPIRV-Tools': { - 'url': '{chromium_git}/external/github.com/KhronosGroup/SPIRV-Tools@60ce96e2ff10677c52ee5892519cb74d078d1592', + 'url': '{chromium_git}/external/github.com/KhronosGroup/SPIRV-Tools@671914c28e8249f0a555726a0f3f38691fe5c1df', 'condition': 'dawn_standalone', }, 'third_party/spirv-headers': { - 'url': '{chromium_git}/external/github.com/KhronosGroup/SPIRV-Headers@060627f0b0d2fa8581b5acb939f46e3b9e500593', + 'url': '{chromium_git}/external/github.com/KhronosGroup/SPIRV-Headers@5ab5c96198f30804a6a29961b8905f292a8ae600', 'condition': 'dawn_standalone', }, 'third_party/glslang': { diff --git a/src/dawn_native/ShaderModule.cpp b/src/dawn_native/ShaderModule.cpp index 8b4b307f22..c29aee8ff4 100644 --- a/src/dawn_native/ShaderModule.cpp +++ b/src/dawn_native/ShaderModule.cpp @@ -27,10 +27,10 @@ #ifdef DAWN_ENABLE_WGSL // Tint include must be after spirv_cross.hpp, because spirv-cross has its own -// version of spirv_headers. -// clang-format off -#include -// clang-format on +// version of spirv_headers. We also need to undef SPV_REVISION because SPIRV-Cross +// is at 3 while spirv-headers is at 4. +# undef SPV_REVISION +# include #endif // DAWN_ENABLE_WGSL #include diff --git a/src/dawn_native/d3d12/ShaderModuleD3D12.cpp b/src/dawn_native/d3d12/ShaderModuleD3D12.cpp index 7b10fc07e7..f437626862 100644 --- a/src/dawn_native/d3d12/ShaderModuleD3D12.cpp +++ b/src/dawn_native/d3d12/ShaderModuleD3D12.cpp @@ -30,6 +30,10 @@ #include #ifdef DAWN_ENABLE_WGSL +// Tint include must be after spirv_hlsl.hpp, because spirv-cross has its own +// version of spirv_headers. We also need to undef SPV_REVISION because SPIRV-Cross +// is at 3 while spirv-headers is at 4. +# undef SPV_REVISION # include #endif // DAWN_ENABLE_WGSL