summaryrefslogtreecommitdiff
path: root/src/radeon_exa_render.c
diff options
context:
space:
mode:
authorFredrik Höglund <fredrik@kde.org>2009-06-29 22:38:26 +0200
committerFredrik Höglund <fredrik@kde.org>2009-06-29 22:38:26 +0200
commitbb04b450ed00ca4b1aa44c33085567d47b33b547 (patch)
treea5309080efb6dfa3e85a0185e76a7675164b1a79 /src/radeon_exa_render.c
parentf39cafc5c4a93a16ac93756473ebb1f33c7881db (diff)
Check if the composite op is supported in R200CheckComposite.
Diffstat (limited to 'src/radeon_exa_render.c')
-rw-r--r--src/radeon_exa_render.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/radeon_exa_render.c b/src/radeon_exa_render.c
index 4610d804..e2742056 100644
--- a/src/radeon_exa_render.c
+++ b/src/radeon_exa_render.c
@@ -807,6 +807,10 @@ static Bool R200CheckComposite(int op, PicturePtr pSrcPicture, PicturePtr pMaskP
TRACE;
+ /* Check for unsupported compositing operations. */
+ if (op >= sizeof(RadeonBlendOp) / sizeof(RadeonBlendOp[0]))
+ RADEON_FALLBACK(("Unsupported Composite op 0x%x\n", op));
+
if (!pSrcPicture->pDrawable)
return FALSE;