From d9568e2ca924f035d8cb6ecf16691859593e7bca Mon Sep 17 00:00:00 2001 From: Austin Eng Date: Mon, 14 Aug 2017 16:14:47 -0400 Subject: [PATCH] Reset vertex buffers aspect when pipelines change and fix bug where inputsSet is not cleared --- src/backend/CommandBufferStateTracker.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/backend/CommandBufferStateTracker.cpp b/src/backend/CommandBufferStateTracker.cpp index e0bc4c64d8..343c4cebda 100644 --- a/src/backend/CommandBufferStateTracker.cpp +++ b/src/backend/CommandBufferStateTracker.cpp @@ -234,6 +234,7 @@ namespace backend { texturesAttached.clear(); currentSubpass += 1; + inputsSet.reset(); aspects.reset(VALIDATION_ASPECT_RENDER_SUBPASS); UnsetPipeline(); return true; @@ -290,7 +291,6 @@ namespace backend { return false; } aspects.set(VALIDATION_ASPECT_COMPUTE_PIPELINE); - return SetPipelineCommon(pipeline); } @@ -546,6 +546,7 @@ namespace backend { PipelineLayoutBase* layout = pipeline->GetLayout(); aspects.reset(VALIDATION_ASPECT_BIND_GROUPS); + aspects.reset(VALIDATION_ASPECT_VERTEX_BUFFERS); // Reset bindgroups but mark unused bindgroups as valid bindgroupsSet = ~layout->GetBindGroupsLayoutMask();