aboutsummaryrefslogtreecommitdiff
path: root/layers/draw_state.cpp
diff options
context:
space:
mode:
authorTobin Ehlis <tobin@lunarg.com>2015-10-27 10:10:54 -0600
committerTobin Ehlis <tobin@lunarg.com>2015-10-28 09:17:34 -0600
commit5a1f920153fbb71ff3c36972f062418f05976722 (patch)
tree46d9a995bbb0dce695e3255b1ed1ff8a2db23a1a /layers/draw_state.cpp
parent07d19e86712df8987ea96ca914108f39e3c3fa94 (diff)
downloadusermoji-5a1f920153fbb71ff3c36972f062418f05976722.tar.xz
layers: Remove DrawState g_lastBoundDescriptorSet variable - it's no longer used
Diffstat (limited to 'layers/draw_state.cpp')
-rwxr-xr-xlayers/draw_state.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/layers/draw_state.cpp b/layers/draw_state.cpp
index 3519c0bb..c9db5bb0 100755
--- a/layers/draw_state.cpp
+++ b/layers/draw_state.cpp
@@ -236,7 +236,6 @@ static uint32_t g_lastTouchedCBIndex = 0;
// Track the last global DrawState of interest touched by any thread
static GLOBAL_CB_NODE* g_lastGlobalCB = NULL;
static PIPELINE_NODE* g_lastBoundPipeline = NULL;
-static VkDescriptorSet g_lastBoundDescriptorSet = VK_NULL_HANDLE;
#define MAX_BINDING 0xFFFFFFFF // Default vtxBinding value in CB Node to identify if no vtxBinding set
// prototype
static GLOBAL_CB_NODE* getCBNode(layer_data*, const VkCmdBuffer);
@@ -1062,7 +1061,6 @@ static VkBool32 dsUpdate(layer_data* my_data, VkDevice device, VkStructureType t
for (uint32_t i = 0; i < updateCount; i++) {
VkDescriptorSet ds = pWDS[i].destSet;
SET_NODE* pSet = my_data->setMap[ds.handle]; // getSetNode() without locking
- g_lastBoundDescriptorSet = pSet->set;
GENERIC_HEADER* pUpdate = (GENERIC_HEADER*) &pWDS[i];
pLayout = pSet->pLayout;
// First verify valid update struct
@@ -2591,7 +2589,6 @@ VK_LAYER_EXPORT void VKAPI vkCmdBindDescriptorSets(VkCmdBuffer cmdBuffer, VkPipe
pCB->lastBoundDescriptorSet = pDescriptorSets[i];
pCB->lastBoundPipelineLayout = layout;
pCB->boundDescriptorSets.push_back(pDescriptorSets[i]);
- g_lastBoundDescriptorSet = pDescriptorSets[i];
loader_platform_thread_unlock_mutex(&globalLock);
skipCall |= log_msg(dev_data->report_data, VK_DBG_REPORT_INFO_BIT, VK_OBJECT_TYPE_DESCRIPTOR_SET, pDescriptorSets[i].handle, 0, DRAWSTATE_NONE, "DS",
"DS %#" PRIxLEAST64 " bound on pipeline %s", pDescriptorSets[i].handle, string_VkPipelineBindPoint(pipelineBindPoint));