anv: fix descriptor pool internal size allocation
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Thu, 26 Jan 2017 11:06:53 +0000 (11:06 +0000)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Thu, 26 Jan 2017 17:24:21 +0000 (17:24 +0000)
commitc3421106ec332bf3a943ccf9447edf00dc7f3618
tree060ae657b472edf477ecff000279d5145d6f0492
parentf8f7ea508be7fe7222cd19e0d59574cfea2decf0
anv: fix descriptor pool internal size allocation

The size of the pool is slightly smaller than the size of the
structure containing the whole pool. We need to take that into account
on when setting up the internals.

Fixes a crash due to out of bound memory access in:
   dEQP-VK.api.descriptor_pool.out_of_pool_memory

v2: Drop debug traces (Lionel)

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Cc: "17.0 13.0" <mesa-stable@lists.freedesktop.org>
src/intel/vulkan/anv_descriptor_set.c