aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/intel_upload.c
diff options
context:
space:
mode:
authorNanley Chery <[email protected]>2015-06-02 11:03:22 -0700
committerNanley Chery <[email protected]>2015-08-26 14:36:43 -0700
commit54d2aa4258f0bfcc669b2bc4e82332f7ff4876dd (patch)
tree45ee7c091d883ade5eb2359f10cba70602de7228 /src/mesa/drivers/dri/i965/intel_upload.c
parent97f4efd573aed7ffc0ea9395f4e69ccdeb5041f6 (diff)
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 <[email protected]> Signed-off-by: Nanley Chery <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/intel_upload.c')
-rw-r--r--src/mesa/drivers/dri/i965/intel_upload.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_upload.c b/src/mesa/drivers/dri/i965/intel_upload.c
index 870aabc8863..deaae6c7ed5 100644
--- a/src/mesa/drivers/dri/i965/intel_upload.c
+++ b/src/mesa/drivers/dri/i965/intel_upload.c
@@ -44,12 +44,6 @@
#define INTEL_UPLOAD_SIZE (64*1024)
-/**
- * Like ALIGN(), but works with a non-power-of-two alignment.
- */
-#define ALIGN_NPOT(value, alignment) \
- (((value) + (alignment) - 1) / (alignment) * (alignment))
-
void
intel_upload_finish(struct brw_context *brw)
{