Quellcode durchsuchen

[spirv] spirv-val scalar-block-layout for unittests (#2481)

This is a follow up commit of #2473 that uses scalar-block-layout
spirv-val option for dx/scalar layout. I forgot to apply the same
thing for unittests.
Jaebaek Seo vor 6 Jahren
Ursprung
Commit
3e302950dd
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      tools/clang/unittests/SPIRV/FileTestUtils.cpp

+ 1 - 1
tools/clang/unittests/SPIRV/FileTestUtils.cpp

@@ -41,7 +41,7 @@ bool validateSpirvBinary(spv_target_env env, std::vector<uint32_t> &binary,
   spvtools::ValidatorOptions options;
   options.SetBeforeHlslLegalization(beforeHlslLegalization);
   if (dxLayout || scalarLayout) {
-    options.SetSkipBlockLayout(true);
+    options.SetScalarBlockLayout(true);
   } else if (glLayout) {
     // The default for spirv-val.
   } else {