r600: don't setup hardware state if TFP
authorDave Airlie <airlied@linux.ie>
Wed, 9 Sep 2009 05:02:16 +0000 (15:02 +1000)
committerDave Airlie <airlied@linux.ie>
Wed, 9 Sep 2009 05:02:16 +0000 (15:02 +1000)
if we have a BO here it means TFP and we should have set it
up already.

tested by b0le on #radeon

src/mesa/drivers/dri/r600/r600_texstate.c

index fff6e743860e91205924c8a2998968411733409f..ff4ef1ee74cbf80f5c4ea090b570d2b544c6b1b5 100644 (file)
@@ -608,6 +608,10 @@ static void setup_hardware_state(context_t *rmesa, struct gl_texture_object *tex
        int firstlevel = t->mt ? t->mt->firstLevel : 0;
        GLuint uTexelPitch, row_align;
 
+       if ( t->bo ) {
+               return GL_TRUE;
+       }
+
        firstImage = t->base.Image[0][firstlevel];
 
        if (!t->image_override) {