diff options
| author | iostrows <igor.ostrowski@intel.com> | 2016-06-02 15:56:26 +0200 |
|---|---|---|
| committer | Tobin Ehlis <tobine@google.com> | 2016-06-02 09:45:48 -0600 |
| commit | 03918739683bd7c81c2572da6036fcae75d1387c (patch) | |
| tree | 8b8dd349abac1e8b6135661ffc7e77160f738856 /layers/descriptor_sets.cpp | |
| parent | c90ca65de9cd73f7a1ddaff9c05b21cfe47cca6e (diff) | |
| download | usermoji-03918739683bd7c81c2572da6036fcae75d1387c.tar.xz | |
layers: GH611 Fix dynamic offset indexing
Diffstat (limited to 'layers/descriptor_sets.cpp')
| -rw-r--r-- | layers/descriptor_sets.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layers/descriptor_sets.cpp b/layers/descriptor_sets.cpp index e1602251..0530f40c 100644 --- a/layers/descriptor_sets.cpp +++ b/layers/descriptor_sets.cpp @@ -341,13 +341,13 @@ bool cvdescriptorset::DescriptorSet::IsCompatible(const DescriptorSetLayout *lay // Return true if state is acceptable, or false and write an error message into error string bool cvdescriptorset::DescriptorSet::ValidateDrawState(const std::unordered_set<uint32_t> &bindings, const std::vector<uint32_t> &dynamic_offsets, std::string *error) const { + auto dyn_offset_index = 0; for (auto binding : bindings) { auto start_idx = p_layout_->GetGlobalStartIndexFromBinding(binding); if (descriptors_[start_idx]->IsImmutableSampler()) { // Nothing to do for strictly immutable sampler } else { auto end_idx = p_layout_->GetGlobalEndIndexFromBinding(binding); - auto dyn_offset_index = 0; for (uint32_t i = start_idx; i <= end_idx; ++i) { if (!descriptors_[i]->updated) { std::stringstream error_str; |
