From 45c7040ad9a1862157878838b42020948fc8a6b5 Mon Sep 17 00:00:00 2001 From: Tobin Ehlis Date: Mon, 13 Jul 2015 14:51:15 -0600 Subject: layers: In DrawState correctly return rasterSamples count for PSO --- layers/draw_state.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'layers/draw_state.cpp') diff --git a/layers/draw_state.cpp b/layers/draw_state.cpp index 816cf359..44761194 100644 --- a/layers/draw_state.cpp +++ b/layers/draw_state.cpp @@ -624,11 +624,9 @@ static void deletePipelines() static uint32_t getNumSamples(const VkPipeline pipeline) { PIPELINE_NODE* pPipe = pipelineMap[pipeline.handle]; - // TODO: msStateCI.multisampleEnable has been removed from API, is there anything left to do here? -// if (VK_STRUCTURE_TYPE_PIPELINE_MULTISAMPLE_STATE_CREATE_INFO == pPipe->msStateCI.sType) { -// if (pPipe->msStateCI.multisampleEnable) -// return pPipe->msStateCI.rasterSamples; -// } + if (VK_STRUCTURE_TYPE_PIPELINE_MULTISAMPLE_STATE_CREATE_INFO == pPipe->msStateCI.sType) { + return pPipe->msStateCI.rasterSamples; + } return 1; } // Validate state related to the PSO -- cgit v1.2.3