summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/intel_regions.c
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2006-09-07 16:23:22 +0000
committerKeith Whitwell <[email protected]>2006-09-07 16:23:22 +0000
commit1456a0fff6a68dac046aaa57585eadf65ad66892 (patch)
tree0e00c34aa2d3ae1c644e2057a9c92b792c10aba2 /src/mesa/drivers/dri/i965/intel_regions.c
parent133f14168009393c5f396d218521625cb79b653f (diff)
Use lower alignments where possible. Also pad out allocated blocks to
a multiple of alignment to avoid accumulating unusable free blocks.
Diffstat (limited to 'src/mesa/drivers/dri/i965/intel_regions.c')
-rw-r--r--src/mesa/drivers/dri/i965/intel_regions.c2
1 files changed, 1 insertions, 1 deletions
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, &region->buffer);
+ bmGenBuffers(intel, "tex", 1, &region->buffer, 6);
bmBufferData(intel, region->buffer, pitch * cpp * height, NULL, 0);
return region;