From 1456a0fff6a68dac046aaa57585eadf65ad66892 Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Thu, 7 Sep 2006 16:23:22 +0000 Subject: Use lower alignments where possible. Also pad out allocated blocks to a multiple of alignment to avoid accumulating unusable free blocks. --- src/mesa/drivers/dri/i965/bufmgr.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/mesa/drivers/dri/i965/bufmgr.h') diff --git a/src/mesa/drivers/dri/i965/bufmgr.h b/src/mesa/drivers/dri/i965/bufmgr.h index 50fbcda50b..63e1011a76 100644 --- a/src/mesa/drivers/dri/i965/bufmgr.h +++ b/src/mesa/drivers/dri/i965/bufmgr.h @@ -84,7 +84,8 @@ int bmInitPool( struct intel_context *, * understood, and drivers can just pass the calls through without too * much thunking. */ -void bmGenBuffers(struct intel_context *, const char *, unsigned n, struct buffer **buffers); +void bmGenBuffers(struct intel_context *, const char *, unsigned n, struct buffer **buffers, + int align ); void bmDeleteBuffers(struct intel_context *, unsigned n, struct buffer **buffers); -- cgit v1.2.3