summaryrefslogtreecommitdiff
path: root/src/sna/gen4_source.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-01-06 15:20:14 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2013-01-06 15:20:14 +0000
commit9051f43fa3c8d011921ac6ff75b763280f26d98f (patch)
tree8871c41a4158d759c0ba6d94931190174682cbc9 /src/sna/gen4_source.c
parent4af910e8be92e0ca241ce1e93e322c712dcbe340 (diff)
sna/gen4+: Handle solids passed to the general texcoord emitter
The general texcoord emitter does handle solids (for the case of a transformed mask) and so we need to be careful to setup the VERTEX_ELEMENTS accordingly. Fixes regression from commit 2559cfcc4cbc1d0d84b048565cad3bfee61df8da Author: Chris Wilson <chris@chris-wilson.co.uk> Date: Wed Jan 2 10:22:14 2013 +0000 sna/gen4+: Specialise linear vertex emissio Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/gen4_source.c')
-rw-r--r--src/sna/gen4_source.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/gen4_source.c b/src/sna/gen4_source.c
index 8ea16175..749de8d6 100644
--- a/src/sna/gen4_source.c
+++ b/src/sna/gen4_source.c
@@ -44,6 +44,7 @@ gen4_channel_init_solid(struct sna *sna,
channel->repeat = RepeatNormal;
channel->is_affine = true;
channel->is_solid = true;
+ channel->is_opaque = (color >> 24) == 0xff;
channel->transform = NULL;
channel->width = 1;
channel->height = 1;
@@ -57,7 +58,6 @@ gen4_channel_init_solid(struct sna *sna,
return channel->bo != NULL;
}
-
bool
gen4_channel_init_linear(struct sna *sna,
PicturePtr picture,