r600: don't setup hardware state if TFP
authorDave Airlie <airlied@linux.ie>
Wed, 9 Sep 2009 05:02:16 +0000 (15:02 +1000)
committerAlex Deucher <alexdeucher@gmail.com>
Thu, 24 Sep 2009 13:57:45 +0000 (09:57 -0400)
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 49b603b65e119504d108d457e619d6879397cc32..6436a5d7e9b48f7219a5785d180ec931f8a17804 100644 (file)
@@ -565,6 +565,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) {