From aec7de9f0207ced1d6bfa01546a51b774b693e2e Mon Sep 17 00:00:00 2001 From: Mark Lobodzinski Date: Wed, 1 Mar 2017 14:39:38 -0700 Subject: layers: Validate the depthBounds device feature Change-Id: I27aa9d678f9e7ce90db325f2a7f7aa215741c8c9 --- layers/core_validation.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp index 49b0b4bc..5c8b7948 100644 --- a/layers/core_validation.cpp +++ b/layers/core_validation.cpp @@ -3262,6 +3262,14 @@ static bool verifyPipelineCreateState(layer_data *dev_data, std::vectorgraphicsPipelineCI.pDepthStencilState->depthBoundsTestEnable == VK_TRUE) && + (!dev_data->enabled_features.depthBounds)) { + skip_call |= log_msg( + dev_data->report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT, VK_DEBUG_REPORT_OBJECT_TYPE_UNKNOWN_EXT, 0, __LINE__, + DRAWSTATE_INVALID_FEATURE, "DS", + "vkCreateGraphicsPipelines(): the depthBounds device feature is disabled: the depthBoundsTestEnable " + "member of the VkPipelineDepthStencilStateCreateInfo structure must be set to VK_FALSE."); } } -- cgit v1.2.3