소스 검색

[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 {