OSDN Git Service

anv/descriptor_set: Initialize immutable_samplers to NULL
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 16 Dec 2015 00:24:19 +0000 (16:24 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 16 Dec 2015 00:24:22 +0000 (16:24 -0800)
commitd61ff1ed0827df87b811862cf4e0d2985c075aa7
treed60890457268d025ced3eaa825e785333a16e10f
parent28c4ef9d6ce63b03c5849332ed93ada4a563ecee
anv/descriptor_set: Initialize immutable_samplers to NULL

Previously this wasn't a problem.  However, with the new API update,
descriptor sets can now be sparse so the client doesn't have to provide an
entry for every binding.  This means that it's possible for a binding to be
uninitialized other than the memset.  In that case, we want to have a null
array of immutable samplers.
src/vulkan/anv_descriptor_set.c