bestprac: Fixed pipeline creation state issue
Missing call to base class caused crashes when creating pipelines.
Change-Id: I9d5fc4076e1b934c6fdcb4b040977b9e6e0aa0d9
diff --git a/layers/best_practices.cpp b/layers/best_practices.cpp
index c9a4b12..6dc2ef2 100644
--- a/layers/best_practices.cpp
+++ b/layers/best_practices.cpp
@@ -369,7 +369,8 @@
const VkGraphicsPipelineCreateInfo* pCreateInfos,
const VkAllocationCallbacks* pAllocator, VkPipeline* pPipelines,
void* cgpl_state_data) {
- bool skip = false;
+ bool skip = StateTracker::PreCallValidateCreateGraphicsPipelines(device, pipelineCache, createInfoCount, pCreateInfos,
+ pAllocator, pPipelines, cgpl_state_data);
if ((createInfoCount > 1) && (!pipelineCache)) {
skip |=
@@ -386,7 +387,8 @@
const VkComputePipelineCreateInfo* pCreateInfos,
const VkAllocationCallbacks* pAllocator, VkPipeline* pPipelines,
void* ccpl_state_data) {
- bool skip = false;
+ bool skip = StateTracker::PreCallValidateCreateComputePipelines(device, pipelineCache, createInfoCount, pCreateInfos,
+ pAllocator, pPipelines, ccpl_state_data);
if ((createInfoCount > 1) && (!pipelineCache)) {
skip |= log_msg(report_data, VK_DEBUG_REPORT_PERFORMANCE_WARNING_BIT_EXT, VK_DEBUG_REPORT_OBJECT_TYPE_UNKNOWN_EXT, 0,