mesa/macros: move ALIGN_NPOT to macros.h
authorNanley Chery <nanley.g.chery@intel.com>
Tue, 2 Jun 2015 18:03:22 +0000 (11:03 -0700)
committerNanley Chery <nanley.g.chery@intel.com>
Wed, 26 Aug 2015 21:36:43 +0000 (14:36 -0700)
commit54d2aa4258f0bfcc669b2bc4e82332f7ff4876dd
tree45ee7c091d883ade5eb2359f10cba70602de7228
parent97f4efd573aed7ffc0ea9395f4e69ccdeb5041f6
mesa/macros: move ALIGN_NPOT to macros.h

Aligning with a non-power-of-two number is a general task that can be used in
various places. This commit is required for the next one.

v2: add greater than 0 assertion (Anuj).
    convert the macro to a static inline function.

Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Signed-off-by: Nanley Chery <nanley.g.chery@intel.com>
src/mesa/drivers/dri/i965/intel_upload.c
src/mesa/main/macros.h