From 41b684a8fc0efb0951e0c8b2c8f52058d25ecb63 Mon Sep 17 00:00:00 2001 From: Tobin Ehlis Date: Tue, 25 Oct 2016 15:23:08 -0600 Subject: layers:Rename cmd buffer flags for clarity Fixes #870 CBSTATUS_ALL was not clear so changed to more descriptive CBSTATUS_ALL_STATE_SET. This mask is used to flag all of the pipeline state for a cmd buffer as "set." The setting can then be adjusted based on which state was flagged as dynamic in the pipeline state object. --- layers/core_validation.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'layers/core_validation.cpp') diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp index 0390dc3d..e07929da 100644 --- a/layers/core_validation.cpp +++ b/layers/core_validation.cpp @@ -4205,12 +4205,12 @@ static void set_cb_pso_status(GLOBAL_CB_NODE *pCB, const PIPELINE_STATE *pPipe) // Account for any dynamic state not set via this PSO if (!pPipe->graphicsPipelineCI.pDynamicState || !pPipe->graphicsPipelineCI.pDynamicState->dynamicStateCount) { // All state is static - pCB->status |= CBSTATUS_ALL; + pCB->status |= CBSTATUS_ALL_STATE_SET; } else { // First consider all state on // Then unset any state that's noted as dynamic in PSO // Finally OR that into CB statemask - CBStatusFlags psoDynStateMask = CBSTATUS_ALL; + CBStatusFlags psoDynStateMask = CBSTATUS_ALL_STATE_SET; for (uint32_t i = 0; i < pPipe->graphicsPipelineCI.pDynamicState->dynamicStateCount; i++) { switch (pPipe->graphicsPipelineCI.pDynamicState->pDynamicStates[i]) { case VK_DYNAMIC_STATE_LINE_WIDTH: -- cgit v1.2.3