Explorar o código

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 %!s(int64=3) %!d(string=hai) anos
pai
achega
ff7580a1fa
Modificáronse 1 ficheiros con 6 adicións e 2 borrados
  1. 6 2
      tools/clang/unittests/HLSL/ExecutionTest.cpp

+ 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"