From 2afd521e6c35a5ef245935980f5c4222ae70ee2d Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Mon, 3 Oct 2016 15:28:49 +1300 Subject: layers: Get rid of duplication of logic op test between PV and CV Signed-off-by: Chris Forbes --- layers/core_validation.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'layers/core_validation.cpp') diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp index abb5e2b9..755e2cd1 100644 --- a/layers/core_validation.cpp +++ b/layers/core_validation.cpp @@ -3367,14 +3367,6 @@ static bool verifyPipelineCreateState(layer_data *my_data, const VkDevice device DRAWSTATE_DISABLED_LOGIC_OP, "DS", "Invalid Pipeline CreateInfo: If logic operations feature not enabled, logicOpEnable must be VK_FALSE"); } - if ((pPipeline->graphicsPipelineCI.pColorBlendState->logicOpEnable == VK_TRUE) && - ((pPipeline->graphicsPipelineCI.pColorBlendState->logicOp < VK_LOGIC_OP_CLEAR) || - (pPipeline->graphicsPipelineCI.pColorBlendState->logicOp > VK_LOGIC_OP_SET))) { - skip_call |= - log_msg(my_data->report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT, (VkDebugReportObjectTypeEXT)0, 0, __LINE__, - DRAWSTATE_INVALID_LOGIC_OP, "DS", - "Invalid Pipeline CreateInfo: If logicOpEnable is VK_TRUE, logicOp must be a valid VkLogicOp value"); - } } // Ensure the subpass index is valid. If not, then validate_and_capture_pipeline_shader_state -- cgit v1.2.3