i965/upload: Refactor open-coded ALIGN-like computations.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 3 Mar 2014 07:09:20 +0000 (23:09 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 18 Mar 2014 17:39:04 +0000 (10:39 -0700)
commit91f4528da620de6518db8f85e6a08c88687d0269
tree098f70ff0a049402b96bb3d2582b0943cbcce558
parentb8b4e280b47888898143b09404e71a51663ac59c
i965/upload: Refactor open-coded ALIGN-like computations.

Sadly, we can't use actual ALIGN(), since that only supports
power-of-two values for the alignment parameter.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/i965/intel_upload.c