anv: Round u_vector element sizes to a power of two
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 12 Jul 2017 02:04:38 +0000 (19:04 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 12 Jul 2017 17:34:13 +0000 (10:34 -0700)
commit8e3d9c5d09c48be9a88bdca7ae3124c12b6db4fe
treefa331481709daaaf1048039c02dc8370a7e1a217
parent5e5f251db14607387f9bf40b787797460ac8414a
anv: Round u_vector element sizes to a power of two

This fixes 32-bit builds of the driver.  Commit 08413a81b93dc537fb0c3
changed things so that we now put struct anv_states in the u_vector for
binding tables.  On 64-bit builds, sizeof(struct anv_state) is a power
of two but it isn't on 32-bit builds.

Fixes: 08413a81b93dc537fb0c34327ad162f07e8c3427
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Cc: mesa-stable@lists.freedesktop.org
src/intel/vulkan/anv_batch_chain.c