Преглед на файлове

Make lifetimes test use 6.6 (#3297)

Presently, lifetime markers are only generated for 6.6
Greg Roth преди 4 години
родител
ревизия
9b39d2e934
променени са 1 файла, в които са добавени 4 реда и са изтрити 1 реда
  1. 4 1
      tools/clang/unittests/HLSL/ExecutionTest.cpp

+ 4 - 1
tools/clang/unittests/HLSL/ExecutionTest.cpp

@@ -1691,8 +1691,11 @@ TEST_F(ExecutionTest, LifetimeIntrinsicTest) {
   // TODO: There's probably a lot of things in the rest of this test that could be stripped away.
 
   CComPtr<ID3D12Device5> pDevice;
-  if (!CreateDevice(reinterpret_cast<ID3D12Device**>(&pDevice), D3D_SHADER_MODEL_6_5, true, true)) // TODO: We need 6.6!
+  if (!CreateDevice(reinterpret_cast<ID3D12Device**>(&pDevice), D3D_SHADER_MODEL_6_6, true, true)) {
+    WEX::Logging::Log::Comment(L"Lifetime test not run pre 6.6");
+    WEX::Logging::Log::Result(WEX::Logging::TestResults::Skipped);
     return;
+  }
 
   std::vector<uint32_t> values;
   SetupComputeValuePattern(values, ThreadsPerGroup * DispatchGroupCount);