2
0
Эх сурвалжийг харах

Fix Writable MSAA ExecutionTest device checks (#4412)

Writable MSAA ExecutionTest was setting TestResults::Skipped for devices
that have the necessary support and continuing to run the test.

Follow the style of the RawGather ExecutionTest.
Jeff Sooknarine 3 жил өмнө
parent
commit
ff7580a1fa

+ 6 - 2
tools/clang/unittests/HLSL/ExecutionTest.cpp

@@ -3722,15 +3722,19 @@ TEST_F(ExecutionTest, ATOWriteMSAATest) {
   if (!CreateDevice(&pDevice, sm))
       return;
 
-  if (DoesDeviceSupportAdvancedTexOps(pDevice)) {
+#ifndef WRITEMSAA_FALLBACK
+  if (!DoesDeviceSupportAdvancedTexOps(pDevice)) {
     WEX::Logging::Log::Comment(L"Device does not support Advanced Texture Operations.");
     WEX::Logging::Log::Result(WEX::Logging::TestResults::Skipped);
+    return;
   }
 
-  if (DoesDeviceSupportWritableMSAA(pDevice)) {
+  if (!DoesDeviceSupportWritableMSAA(pDevice)) {
     WEX::Logging::Log::Comment(L"Device does not support Writable MSAA.");
     WEX::Logging::Log::Result(WEX::Logging::TestResults::Skipped);
+    return;
   }
+#endif
 
   static const char pWriteShader[] =
     "#define SAMPLES 4\n"