xf86-video-intel: src/sna/gen3_render.c

Chris Wilson ickle at kemper.freedesktop.org
Tue Sep 13 10:39:54 PDT 2011


 src/sna/gen3_render.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 83961051789e418f6022096b1ed2302cb2f05e5b
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Tue Sep 13 18:37:01 2011 +0100

    sna/gen3: Reset the shader after playing video
    
    Another piece of state we zap without marking as dirty when playing
    video.
    
    Reported-by: Paul Neumann <paul104x at yahoo.de>
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=40842
    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 429d504..045178c 100644
--- a/src/sna/gen3_render.c
+++ b/src/sna/gen3_render.c
@@ -1642,7 +1642,7 @@ gen3_render_reset(struct sna *sna)
 	state->last_blend = 0;
 	state->last_constants = 0;
 	state->last_sampler = 0;
-	state->last_shader = 0;
+	state->last_shader = -1;
 	state->last_diffuse = 0xcc00ffee;
 	state->last_specular = 0xcc00ffee;
 
@@ -2812,6 +2812,7 @@ gen3_emit_video_state(struct sna *sna,
 	sna->render_state.gen3.last_blend = 0;
 	sna->render_state.gen3.last_sampler = 0;
 	sna->render_state.gen3.floats_per_vertex = 4;
+	sna->render_state.gen3.last_shader = -1;
 
 	if (!is_planar_fourcc(frame->id)) {
 		OUT_BATCH(_3DSTATE_PIXEL_SHADER_CONSTANTS | 4);


More information about the xorg-commit mailing list