diff options
| author | Chris Forbes <chrisforbes@google.com> | 2016-10-17 15:45:49 +1300 |
|---|---|---|
| committer | Chris Forbes <chrisforbes@google.com> | 2016-10-18 09:07:04 +1300 |
| commit | 778c592c76a2a3ab94aaa9676db0a1c2771fe6d3 (patch) | |
| tree | 4fd2a17a433f5b8347875b5b373fd1f267b7fe9a /layers/core_validation.cpp | |
| parent | 32792c182ed8207f183dde5ee553ab9b5afd234f (diff) | |
| download | usermoji-778c592c76a2a3ab94aaa9676db0a1c2771fe6d3.tar.xz | |
layers: Fix bad use of PIPELINE_STATE ptr value in errors
Fixes #1056.
Signed-off-by: Chris Forbes <chrisforbes@google.com>
Diffstat (limited to 'layers/core_validation.cpp')
| -rw-r--r-- | layers/core_validation.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp index 7f007b6e..4e82a472 100644 --- a/layers/core_validation.cpp +++ b/layers/core_validation.cpp @@ -3210,7 +3210,8 @@ static bool validatePipelineDrawtimeState(layer_data const *my_data, LAST_BOUND_ reinterpret_cast<const uint64_t &>(pPipeline->pipeline), __LINE__, DRAWSTATE_RENDERPASS_INCOMPATIBLE, "DS", "At Draw time the active render pass (0x%" PRIxLEAST64 ") is incompatible w/ gfx pipeline " "(0x%" PRIxLEAST64 ") that was created w/ render pass (0x%" PRIxLEAST64 ") due to: %s", - reinterpret_cast<uint64_t &>(pCB->activeRenderPass->renderPass), reinterpret_cast<uint64_t &>(pPipeline), + reinterpret_cast<uint64_t &>(pCB->activeRenderPass->renderPass), + reinterpret_cast<uint64_t const &>(pPipeline->pipeline), reinterpret_cast<const uint64_t &>(pPipeline->graphicsPipelineCI.renderPass), err_string.c_str()); } @@ -3488,7 +3489,8 @@ static bool verifyPipelineCreateState(layer_data *my_data, const VkDevice device // If a rasterization state is provided, make sure that the line width conforms to the HW. if (pPipeline->graphicsPipelineCI.pRasterizationState) { if (!isDynamic(pPipeline, VK_DYNAMIC_STATE_LINE_WIDTH)) { - skip_call |= verifyLineWidth(my_data, DRAWSTATE_INVALID_PIPELINE_CREATE_STATE, reinterpret_cast<uint64_t &>(pPipeline), + skip_call |= verifyLineWidth(my_data, DRAWSTATE_INVALID_PIPELINE_CREATE_STATE, + reinterpret_cast<uint64_t const &>(pPipeline->pipeline), pPipeline->graphicsPipelineCI.pRasterizationState->lineWidth); } } |
