diff options
| author | Chris Forbes <chrisforbes@google.com> | 2017-06-21 11:34:16 -0700 |
|---|---|---|
| committer | Chris Forbes <chrisf@ijw.co.nz> | 2017-06-21 11:53:31 -0700 |
| commit | 032765580168eedf52e8260c87ab2f998e3e787c (patch) | |
| tree | 557aab69d38f41b7efde50fa17a942e1495451e4 /layers/shader_validation.cpp | |
| parent | 6d8923d41ff611456d52b25543a9a19f66bb89bf (diff) | |
| download | usermoji-032765580168eedf52e8260c87ab2f998e3e787c.tar.xz | |
layers: Don't accidentally copy pipeline layout again in SC
Diffstat (limited to 'layers/shader_validation.cpp')
| -rw-r--r-- | layers/shader_validation.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/layers/shader_validation.cpp b/layers/shader_validation.cpp index 282f7660..c6697f90 100644 --- a/layers/shader_validation.cpp +++ b/layers/shader_validation.cpp @@ -1301,10 +1301,8 @@ static bool validate_pipeline_shader_stage( // Validate descriptor set layout against what the entrypoint actually uses auto descriptor_uses = collect_interface_by_descriptor_slot(report_data, module, accessible_ids); - auto pipelineLayout = pipeline->pipeline_layout; - skip |= validate_specialization_offsets(report_data, pStage); - skip |= validate_push_constant_usage(report_data, &pipelineLayout.push_constant_ranges, module, accessible_ids, pStage->stage); + skip |= validate_push_constant_usage(report_data, &pipeline->pipeline_layout.push_constant_ranges, module, accessible_ids, pStage->stage); // Validate descriptor use for (auto use : descriptor_uses) { @@ -1313,7 +1311,7 @@ static bool validate_pipeline_shader_stage( reqs = descriptor_req(reqs | descriptor_type_to_reqs(module, use.second.type_id)); // Verify given pipelineLayout has requested setLayout with requested binding - const auto &binding = get_descriptor_binding(&pipelineLayout, use.first); + const auto &binding = get_descriptor_binding(&pipeline->pipeline_layout, use.first); unsigned required_descriptor_count; if (!binding) { |
