From b5630663cf9438383166f59cdfc7889571f2cd62 Mon Sep 17 00:00:00 2001 From: Zhigang Gong Date: Fri, 9 Dec 2011 15:58:19 +0800 Subject: exports more rendering functions to DDX driver. Exports all necessary rendering functions to DDx drivers, including CopyArea, Glyphs, Composite, Triangles, .... Signed-off-by: Zhigang Gong --- glamor/glamor_triangles.c | 33 +++++++++++++++++++++++++++++---- 1 file changed, 29 insertions(+), 4 deletions(-) (limited to 'glamor/glamor_triangles.c') diff --git a/glamor/glamor_triangles.c b/glamor/glamor_triangles.c index 3cbdd55a8..b7ddd823e 100644 --- a/glamor/glamor_triangles.c +++ b/glamor/glamor_triangles.c @@ -32,14 +32,15 @@ #include "glamor_priv.h" -void -glamor_triangles(CARD8 op, +static Bool +_glamor_triangles(CARD8 op, PicturePtr pSrc, PicturePtr pDst, PictFormatPtr maskFormat, - INT16 xSrc, INT16 ySrc, int ntris, xTriangle * tris) + INT16 xSrc, INT16 ySrc, int ntris, xTriangle * tris, Bool fallback) { - + if (!fallback) + return FALSE; if (glamor_prepare_access(pDst->pDrawable, GLAMOR_ACCESS_RW)) { if (pSrc->pDrawable == NULL || glamor_prepare_access(pSrc->pDrawable, @@ -53,4 +54,28 @@ glamor_triangles(CARD8 op, glamor_finish_access(pDst->pDrawable); } + return TRUE; } + +void +glamor_triangles(CARD8 op, + PicturePtr pSrc, + PicturePtr pDst, + PictFormatPtr maskFormat, + INT16 xSrc, INT16 ySrc, int ntris, xTriangle * tris) +{ + _glamor_triangles(op, pSrc, pDst, maskFormat, + xSrc, ySrc, ntris, tris, TRUE); +} + +Bool +glamor_triangles_nf(CARD8 op, + PicturePtr pSrc, + PicturePtr pDst, + PictFormatPtr maskFormat, + INT16 xSrc, INT16 ySrc, int ntris, xTriangle * tris) +{ + return _glamor_triangles(op, pSrc, pDst, maskFormat, + xSrc, ySrc, ntris, tris, FALSE); +} + -- cgit v1.2.3