summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2007-08-09 12:14:44 +1000
committerKyle McMartin <kyle@phobos.i.cabal.ca>2007-08-14 01:24:06 -0400
commitcd6807306009f57219d5863b9fba785c7bb4f79e (patch)
tree7ff9052ba92d9040fbdf1762087cb3abe6778966
parentba59c2794b89cbd85a1fe743d4f8661edf08c03f (diff)
i965: increase composite vertex buffer size and alignment to be safe
(cherry picked from commit 7b143e5c8397da077c0e02455c21c5a99cf50942)
-rw-r--r--src/i965_render.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/i965_render.c b/src/i965_render.c
index 018208a4..ec64ddd7 100644
--- a/src/i965_render.c
+++ b/src/i965_render.c
@@ -285,7 +285,7 @@ static int next_offset, total_state_size;
static char *state_base;
static int state_base_offset;
static float *vb;
-static int vb_size = (4 * 4) * 4 ; /* 4 DWORDS per vertex*/
+static int vb_size = (6 * 4) * 4 ; /* 6 DWORDS per vertex - and mask*/
static CARD32 src_blend, dst_blend;
@@ -496,7 +496,7 @@ i965_prepare_composite(int op, PicturePtr pSrcPicture,
next_offset = mask_sampler_offset + sizeof(*mask_sampler_state);
}
/* Align VB to native size of elements, for safety */
- vb_offset = ALIGN(next_offset, 8);
+ vb_offset = ALIGN(next_offset, 32);
next_offset = vb_offset + vb_size;
/* And then the general state: */