summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/i915simple
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-08-10 12:37:20 -0600
committerBrian <brian.paul@tungstengraphics.com>2007-08-10 13:03:57 -0600
commitda9178c73088982b9f422187cf782ae5ab6b64ce (patch)
tree8e62ab88e02316e7e71d1c50036c898fb26691b1 /src/mesa/pipe/i915simple
parent48f853f73f7bb46e8c977e551fd66a39e50935ee (diff)
alignment/pitch/width clean-ups
Diffstat (limited to 'src/mesa/pipe/i915simple')
-rw-r--r--src/mesa/pipe/i915simple/i915_regions.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/pipe/i915simple/i915_regions.c b/src/mesa/pipe/i915simple/i915_regions.c
index b3bcae547d..886b089506 100644
--- a/src/mesa/pipe/i915simple/i915_regions.c
+++ b/src/mesa/pipe/i915simple/i915_regions.c
@@ -75,6 +75,7 @@ i915_region_alloc(struct pipe_context *pipe,
{
struct i915_context *i915 = i915_context( pipe );
struct pipe_region *region = calloc(sizeof(*region), 1);
+ const unsigned alignment = 64;
/* Choose a pitch to match hardware requirements - requires 64 byte
* alignment of render targets.
@@ -96,7 +97,7 @@ i915_region_alloc(struct pipe_context *pipe,
region->height = height; /* needed? */
region->refcount = 1;
- region->buffer = i915->winsys->buffer_create( i915->winsys, 64 );
+ region->buffer = i915->winsys->buffer_create( i915->winsys, alignment );
i915->winsys->buffer_data( i915->winsys,
region->buffer,