Revert "Fixes VS num instances assumption"
authorAlexander Galazin <Alexander.Galazin@arm.com>
Thu, 17 Oct 2019 15:11:04 +0000 (11:11 -0400)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Thu, 17 Oct 2019 15:11:23 +0000 (11:11 -0400)
This reverts commit bac8df251bb6103d7844bfeacbb29bf14011b7cb.

Change-Id: I60aa83d860b0b11ec7fc58fb97806635a1eebdca

external/vulkancts/modules/vulkan/spirv_assembly/vktSpvAsmGraphicsShaderTestUtil.cpp

index e11d221..92c1edd 100644 (file)
@@ -4069,25 +4069,9 @@ TestStatus runAndVerifyDefaultPipeline (Context& context, InstanceContext instan
                        vector<deUint8> expectedBytes;
                        expected->getBytes(expectedBytes);
 
-                       // Same vertex shader may be executed for multiple times, the output value should be expected value + non-negative integer N
-                       if (instance.customizedStages == VK_SHADER_STAGE_VERTEX_BIT)
-                       {
-                               const size_t numExpectedEntries = expectedBytes.size() / sizeof(float);
-                               const float* expectedFloats     = reinterpret_cast<const float*>(&expectedBytes.front());
-                               const float* outputFloats       = reinterpret_cast<const float*>(outResourceMemories[outputNdx]->getHostPtr());
+                       if (deMemCmp(&expectedBytes.front(), outResourceMemories[outputNdx]->getHostPtr(), expectedBytes.size()))
+                               return tcu::TestStatus::fail("Resource returned doesn't match bitwisely with expected");
 
-                               for (size_t expectedNdx = 0; expectedNdx < numExpectedEntries; ++expectedNdx)
-                               {
-                                       float diff = outputFloats[expectedNdx] - expectedFloats[expectedNdx];
-                                       if ((diff < 0) || (deFloatFloor(diff) != diff))
-                                               return tcu::TestStatus::fail("Value returned should be equal to expected value plus non-negative integer");
-                               }
-                       }
-                       else
-                       {
-                               if (deMemCmp(&expectedBytes.front(), outResourceMemories[outputNdx]->getHostPtr(), expectedBytes.size()))
-                                       return tcu::TestStatus::fail("Resource returned doesn't match bitwisely with expected");
-                       }
                }
        }