From 70276e4e9a8a5026ec436d2be5bf5eab868aa178 Mon Sep 17 00:00:00 2001 From: Wang Zhenyu Date: Wed, 29 Nov 2006 16:30:53 +0800 Subject: [PATCH] [PATCH] fix vertex buffer size Signed-off-by: Keith Packard --- src/i965_exa_render.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/i965_exa_render.c b/src/i965_exa_render.c index 9127d655..94eabfbe 100644 --- a/src/i965_exa_render.c +++ b/src/i965_exa_render.c @@ -233,16 +233,12 @@ Bool I965EXACheckComposite(int op, PicturePtr pSrcPicture, PicturePtr pMaskPicture, PicturePtr pDstPicture) { - /* check op*/ - /* check op with mask's componentAlpha*/ - /* check textures */ - /* check dst buffer format */ CARD32 tmp1; /* Check for unsupported compositing operations. */ if (op >= sizeof(I965BlendOp) / sizeof(I965BlendOp[0])) I830FALLBACK("Unsupported Composite op 0x%x\n", op); - + if (pMaskPicture != NULL && pMaskPicture->componentAlpha) { /* Check if it's component alpha that relies on a source alpha and on * the source value. We can only get one of those into the single @@ -305,7 +301,7 @@ int next_offset, total_state_size; char *state_base; int state_base_offset; float *vb; -int vb_size = 4 * 4 ; /* 4 DWORDS per vertex, 4 vertices for TRIFAN*/ +int vb_size = (4 * 4) * 4 ; /* 4 DWORDS per vertex*/ CARD32 src_blend, dst_blend;