diff options
| author | Mark Lobodzinski <mark@lunarg.com> | 2017-03-01 14:39:38 -0700 |
|---|---|---|
| committer | Mark Lobodzinski <mark@lunarg.com> | 2017-03-13 16:02:59 -0600 |
| commit | aec7de9f0207ced1d6bfa01546a51b774b693e2e (patch) | |
| tree | bc590cfc50e7bea6efc6848dcd315be503d4e9e2 | |
| parent | a4cb5d8d993b9e81f0cb2cca7e2e570fa787b21c (diff) | |
| download | usermoji-aec7de9f0207ced1d6bfa01546a51b774b693e2e.tar.xz | |
layers: Validate the depthBounds device feature
Change-Id: I27aa9d678f9e7ce90db325f2a7f7aa215741c8c9
| -rw-r--r-- | layers/core_validation.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
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::vector<PIPELINE "Invalid Pipeline CreateInfo State: pDepthStencilState is NULL when rasterization is " "enabled and subpass uses a depth/stencil attachment. %s", validation_error_map[VALIDATION_ERROR_02115]); + + } else if ((pPipeline->graphicsPipelineCI.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."); } } |
