anv/blorp: Add a gcd_pow2_u64 helper and use it for buffer alignments
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 10 Sep 2016 02:21:18 +0000 (19:21 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 13 Sep 2016 19:40:13 +0000 (12:40 -0700)
commit36286ccb9674c10255a61e096ac523e58c39c8cf
tree0cef5457c124b002c431d9b5dcbfd2699e14219d
parentaf5d30de55a4ccbef944f7fea16ce8f480a70039
anv/blorp: Add a gcd_pow2_u64 helper and use it for buffer alignments

This is a lot cleaner and easier to read than the old piles of if
statements.

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
src/intel/vulkan/anv_blorp.c