anv/descriptor_set: Properly align descriptor buffer to a page
authorJason Ekstrand <jason@jlekstrand.net>
Wed, 24 Apr 2019 02:40:31 +0000 (21:40 -0500)
committerJason Ekstrand <jason@jlekstrand.net>
Wed, 24 Apr 2019 05:40:27 +0000 (05:40 +0000)
commit45957c05b06f6e05820a87276b682af110bb13a9
tree15b35f1d61443d9e9b87a5a55a44c1f7def1b966
parent3d33c13eca2ef2e643020d3d1b27b96ae2e770e5
anv/descriptor_set: Properly align descriptor buffer to a page

Instead of aligning and then taking inline uniforms into account, we
need to take inline uniforms into account and then align to a page.
Otherwise, we may not be aligned to a page and allocation may fail.

Fixes: 43f40dc7cb2 "anv: Implement VK_EXT_inline_uniform_block"
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/vulkan/anv_descriptor_set.c