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/intel_regions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mesa/drivers/dri/i965/intel_regions.c') diff --git a/src/mesa/drivers/dri/i965/intel_regions.c b/src/mesa/drivers/dri/i965/intel_regions.c index e2cb4273042..51495448ca9 100644 --- a/src/mesa/drivers/dri/i965/intel_regions.c +++ b/src/mesa/drivers/dri/i965/intel_regions.c @@ -82,7 +82,7 @@ struct intel_region *intel_region_alloc( struct intel_context *intel, region->height = height; /* needed? */ region->refcount = 1; - bmGenBuffers(intel, "tex", 1, ®ion->buffer); + bmGenBuffers(intel, "tex", 1, ®ion->buffer, 6); bmBufferData(intel, region->buffer, pitch * cpp * height, NULL, 0); return region; -- cgit v1.2.3