OSDN Git Service

r100/r200: fix front rendering issue.
authorDave Airlie <airlied@redhat.com>
Thu, 12 Feb 2009 11:44:34 +0000 (21:44 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 12 Feb 2009 11:44:34 +0000 (21:44 +1000)
src/mesa/drivers/dri/r200/r200_state.c
src/mesa/drivers/dri/r300/r300_state.c
src/mesa/drivers/dri/radeon/common_misc.c
src/mesa/drivers/dri/radeon/radeon_state.c

index 5c41018..84b0d90 100644 (file)
@@ -1783,6 +1783,7 @@ static void r200DrawBuffer( GLcontext *ctx, GLenum mode )
    }
 
    radeonSetCliprects( &rmesa->radeon );
+   radeonUpdatePageFlipping(&rmesa->radeon);
 
    /* We'll set the drawing engine's offset/pitch parameters later
     * when we update other state.
index 1e7d9af..4258a61 100644 (file)
@@ -2692,8 +2692,6 @@ void r300InitState(r300ContextPtr r300)
        GLcontext *ctx = r300->radeon.glCtx;
        GLuint depth_fmt;
 
-       radeonInitState(&r300->radeon);
-
        switch (ctx->Visual.depthBits) {
        case 16:
                r300->radeon.state.depth.scale = 1.0 / (GLfloat) 0xffff;
@@ -2769,7 +2767,6 @@ static void r300ReadBuffer( GLcontext *ctx, GLenum mode )
  */
 void r300InitStateFuncs(struct dd_function_table *functions)
 {
-       radeonInitStateFuncs(functions);
 
        functions->UpdateState = r300InvalidateState;
        functions->AlphaFunc = r300AlphaFunc;
index 12536b1..f0035e5 100644 (file)
@@ -2595,7 +2595,6 @@ again_alloc:
        bos[0].write_domain =0 ;
        bos[0].new_accounted = 0;
 
-again:
        ret = radeon_cs_space_check(rmesa->cmdbuf.cs, bos, 1);
        if (ret == RADEON_CS_SPACE_OP_TO_BIG) {
                fprintf(stderr,"Got OPEARTION TO BIG ILLEGAL - this cannot happen");
index a9ec1d5..7f90bc8 100644 (file)
@@ -1564,7 +1564,7 @@ static void radeonDrawBuffer( GLcontext *ctx, GLenum mode )
    }
 
    radeonSetCliprects( &rmesa->radeon );
-
+   radeonUpdatePageFlipping(&rmesa->radeon);
    /* We'll set the drawing engine's offset/pitch parameters later
     * when we update other state.
     */