diff options
| author | Tobin Ehlis <tobine@google.com> | 2016-10-11 14:26:49 -0600 |
|---|---|---|
| committer | Tobin Ehlis <tobine@google.com> | 2016-10-18 12:40:32 -0600 |
| commit | 0d0e36553c375ee8bfca3c6b11e4abdaad7205d5 (patch) | |
| tree | c19fb883c507b4ffefc3e2a51591188578d45e1f /layers/descriptor_sets.cpp | |
| parent | db30e4bf5ce9219d675eac941477b5ae7af9e6d2 (diff) | |
| download | usermoji-0d0e36553c375ee8bfca3c6b11e4abdaad7205d5.tar.xz | |
layers:Add BINDABLE superclass for image/buffer state
Support for sparse memory binding is virually non-existant in current
validation layers. This is a first step down a long path to improve
sparse binding support.
The BINDABLE superclass is sub-classed by IMAGE & BUFFER state objs
and contains memory binding info in both the single binding and
sparse binding cases.
Bindings are initially encapsulated in the new MEM_BINDING struct.
For single binding cases, things are almost exactly the same as they
have always been. For sparse binding, the various bindings will be
stored in the sparse_bindings set where we initally don't have complete
information on the sparse binding as we only store the MEM_BINDING info
but this is a start.
Diffstat (limited to 'layers/descriptor_sets.cpp')
| -rw-r--r-- | layers/descriptor_sets.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/layers/descriptor_sets.cpp b/layers/descriptor_sets.cpp index a5f6b0cc..1e22f82c 100644 --- a/layers/descriptor_sets.cpp +++ b/layers/descriptor_sets.cpp @@ -386,12 +386,12 @@ bool cvdescriptorset::DescriptorSet::ValidateDrawState(const std::map<uint32_t, *error = error_str.str(); return false; } else { - auto mem_entry = getMemObjInfo(device_data_, buffer_node->mem); + auto mem_entry = getMemObjInfo(device_data_, buffer_node->binding.mem); if (!mem_entry) { std::stringstream error_str; error_str << "Descriptor in binding #" << binding << " at global descriptor index " << i - << " uses buffer " << buffer << " that references invalid memory " << buffer_node->mem - << "."; + << " uses buffer " << buffer << " that references invalid memory " + << buffer_node->binding.mem << "."; *error = error_str.str(); return false; } |
