diff options
author | Wang Zhenyu <zhenyu.z.wang@intel.com> | 2006-11-29 16:30:53 +0800 |
---|---|---|
committer | Keith Packard <keithp@neko.keithp.com> | 2007-01-06 14:37:30 -0800 |
commit | 70276e4e9a8a5026ec436d2be5bf5eab868aa178 (patch) | |
tree | dadb87e942bf5caa028d7fc19b0bb665be429b38 /src/i965_exa_render.c | |
parent | e8a4cbdeff4125e28d807d0a563efc0606d21a75 (diff) |
[PATCH] fix vertex buffer size
Signed-off-by: Keith Packard <keithp@neko.keithp.com>
Diffstat (limited to 'src/i965_exa_render.c')
-rw-r--r-- | src/i965_exa_render.c | 8 |
1 files 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; |