summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-06-05 14:39:34 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2011-06-05 14:39:34 +0100
commit0260c4ce32fa4d7ae8c6ee79d5488b0114e96251 (patch)
tree57bcb87bcf19db56917b1d79dfb56dbaac85463f
parentfcbe2d9ee79c936cad3ee86836286dcb280f0047 (diff)
sna: Fallback if presented with mask under NO_COMPOSITE
Just making sure that the debug paths actually work... Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/gen3_render.c3
-rw-r--r--src/sna/gen6_render.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/src/sna/gen3_render.c b/src/sna/gen3_render.c
index 203de08f..131c2e59 100644
--- a/src/sna/gen3_render.c
+++ b/src/sna/gen3_render.c
@@ -2114,6 +2114,9 @@ gen3_render_composite(struct sna *sna,
DBG(("%s()\n", __FUNCTION__));
#if NO_COMPOSITE
+ if (mask)
+ return FALSE;
+
return sna_blt_composite(sna, op,
src, dst,
src_x, src_y,
diff --git a/src/sna/gen6_render.c b/src/sna/gen6_render.c
index 5d8eb77b..3f1749fa 100644
--- a/src/sna/gen6_render.c
+++ b/src/sna/gen6_render.c
@@ -2088,6 +2088,9 @@ gen6_render_composite(struct sna *sna,
{
#if NO_COMPOSITE
+ if (mask)
+ return FALSE;
+
return sna_blt_composite(sna, op,
src, dst,
src_x, src_y,