summaryrefslogtreecommitdiff
path: root/glamor/glamor_triangles.c
diff options
context:
space:
mode:
authorZhigang Gong <zhigang.gong@linux.intel.com>2011-12-09 15:58:19 +0800
committerEric Anholt <eric@anholt.net>2013-12-18 11:23:46 -0800
commitb5630663cf9438383166f59cdfc7889571f2cd62 (patch)
treee02930bc8b7af157dd526aaca53b9df1fd968cae /glamor/glamor_triangles.c
parentb5480e64ac4a72bdc31e587ff9e51d67a1a0f11d (diff)
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 <zhigang.gong@linux.intel.com>
Diffstat (limited to 'glamor/glamor_triangles.c')
-rw-r--r--glamor/glamor_triangles.c33
1 files changed, 29 insertions, 4 deletions
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);
+}
+