xf86-video-intel: src/sna/gen3_render.c
Chris Wilson
ickle at kemper.freedesktop.org
Wed Aug 24 13:39:47 PDT 2011
src/sna/gen3_render.c | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit b9ae4e7e71527f1cf2b6dd6890420da22a22fad9
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date: Wed Aug 24 21:38:28 2011 +0100
sna/gen3: reset blend state after applying CA pass
Otherwise we use the stale value when rendering CA glyphs directly to
the front-buffer and subsequent rendering have a tendency to become
invisible. (Rendering via a temporary glyph mask has a fortunate
side-effect of reseting sufficient state to force the re-emission of the
blend state.)
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
diff --git a/src/sna/gen3_render.c b/src/sna/gen3_render.c
index 916f7d8..9f4bcc9 100644
--- a/src/sna/gen3_render.c
+++ b/src/sna/gen3_render.c
@@ -1365,6 +1365,8 @@ static void gen3_magic_ca_pass(struct sna *sna,
OUT_BATCH(PRIM3D_RECTLIST | PRIM3D_INDIRECT_SEQUENTIAL |
(sna->render.vertex_index - sna->render.vertex_start));
OUT_BATCH(sna->render.vertex_start);
+
+ sna->render_state.gen3.last_blend = 0;
}
static void gen3_vertex_flush(struct sna *sna)
More information about the xorg-commit
mailing list