aboutsummaryrefslogtreecommitdiff
path: root/layers/draw_state.cpp
diff options
context:
space:
mode:
authorTobin Ehlis <tobin@lunarg.com>2015-07-13 14:51:15 -0600
committerCourtney Goeltzenleuchter <courtney@LunarG.com>2015-07-17 10:05:24 -0600
commit45c7040ad9a1862157878838b42020948fc8a6b5 (patch)
tree0eee6e43586cb41f16a4a10374c00132f272d147 /layers/draw_state.cpp
parent23d08d34fe9bfcaa784fc7c0d02a8058252a26ee (diff)
downloadusermoji-45c7040ad9a1862157878838b42020948fc8a6b5.tar.xz
layers: In DrawState correctly return rasterSamples count for PSO
Diffstat (limited to 'layers/draw_state.cpp')
-rw-r--r--layers/draw_state.cpp8
1 files changed, 3 insertions, 5 deletions
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