diff options
| author | Chris Forbes <chrisforbes@google.com> | 2016-11-30 14:35:52 +1300 |
|---|---|---|
| committer | Chris Forbes <chrisforbes@google.com> | 2016-12-02 07:48:08 +1300 |
| commit | afdbcbf30b5da6620735d702b0fb0cd1b1fbd78b (patch) | |
| tree | 38a9434ebe43c0a8f44f8ac7f15322dd1c8dbfb4 /layers | |
| parent | 06706ce062f88b5abe2d29dc573981b30854b285 (diff) | |
| download | usermoji-afdbcbf30b5da6620735d702b0fb0cd1b1fbd78b.tar.xz | |
layers: s/skip_call/skip/ in CV CreateComputePipelines
Signed-off-by: Chris Forbes <chrisforbes@google.com>
Diffstat (limited to 'layers')
| -rw-r--r-- | layers/core_validation.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp index 8ab9a64a..50dc4b12 100644 --- a/layers/core_validation.cpp +++ b/layers/core_validation.cpp @@ -6892,7 +6892,7 @@ CreateComputePipelines(VkDevice device, VkPipelineCache pipelineCache, uint32_t const VkComputePipelineCreateInfo *pCreateInfos, const VkAllocationCallbacks *pAllocator, VkPipeline *pPipelines) { VkResult result = VK_SUCCESS; - bool skip_call = false; + bool skip = false; // TODO : Improve this data struct w/ unique_ptrs so cleanup below is automatic vector<PIPELINE_STATE *> pPipeState(count); @@ -6907,15 +6907,14 @@ CreateComputePipelines(VkDevice device, VkPipelineCache pipelineCache, uint32_t pPipeState[i] = new PIPELINE_STATE; pPipeState[i]->initComputePipeline(&pCreateInfos[i]); pPipeState[i]->pipeline_layout = *getPipelineLayout(dev_data, pCreateInfos[i].layout); - // memcpy(&pPipeState[i]->computePipelineCI, (const void *)&pCreateInfos[i], sizeof(VkComputePipelineCreateInfo)); // TODO: Add Compute Pipeline Verification - skip_call |= !validate_compute_pipeline(dev_data->report_data, pPipeState[i], &dev_data->enabled_features, + skip |= !validate_compute_pipeline(dev_data->report_data, pPipeState[i], &dev_data->enabled_features, dev_data->shaderModuleMap); - // skip_call |= verifyPipelineCreateState(dev_data, pPipeState[i]); + // skip |= verifyPipelineCreateState(dev_data, pPipeState[i]); } - if (!skip_call) { + if (!skip) { lock.unlock(); result = dev_data->dispatch_table.CreateComputePipelines(device, pipelineCache, count, pCreateInfos, pAllocator, pPipelines); |
