浏览代码

[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 6 年之前
父节点
当前提交
3e302950dd
共有 1 个文件被更改,包括 1 次插入1 次删除
  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 {