tests:Correctly treat failMask as enum
authorTobin Ehlis <tobine@google.com>
Wed, 13 Dec 2017 15:59:54 +0000 (08:59 -0700)
committerTobin Ehlis <tobine@google.com>
Thu, 14 Dec 2017 00:43:22 +0000 (17:43 -0700)
tests/layer_validation_tests.cpp

index 74c651f..e7b7feb 100644 (file)
@@ -645,7 +645,7 @@ void VkLayerTest::VKTriangleTest(BsoFailSelect failCase) {
 }
 
 void VkLayerTest::GenericDrawPreparation(VkCommandBufferObj *commandBuffer, VkPipelineObj &pipelineobj,
-                                         VkDescriptorSetObj &descriptorSet, BsoFailSelect failMask) {
+                                         VkDescriptorSetObj &descriptorSet, BsoFailSelect failCase) {
     commandBuffer->ClearAllBuffers(m_renderTargets, m_clear_color, m_depthStencil, m_depth_clear_color, m_stencil_clear_color);
 
     commandBuffer->PrepareAttachments(m_renderTargets, m_depthStencil);
@@ -666,7 +666,7 @@ void VkLayerTest::GenericDrawPreparation(VkCommandBufferObj *commandBuffer, VkPi
     ds_ci.depthWriteEnable = VK_TRUE;
     ds_ci.depthCompareOp = VK_COMPARE_OP_NEVER;
     ds_ci.depthBoundsTestEnable = VK_FALSE;
-    if (failMask & BsoFailDepthBounds) {
+    if (failCase == BsoFailDepthBounds) {
         ds_ci.depthBoundsTestEnable = VK_TRUE;
         ds_ci.maxDepthBounds = 0.0f;
         ds_ci.minDepthBounds = 0.0f;