radeon: use t->bo to figure out of settexbuffer override is in action
authorDave Airlie <airlied@linux.ie>
Thu, 5 Mar 2009 09:00:17 +0000 (19:00 +1000)
committerDave Airlie <airlied@linux.ie>
Thu, 5 Mar 2009 09:00:17 +0000 (19:00 +1000)
src/mesa/drivers/dri/r200/r200_texstate.c
src/mesa/drivers/dri/radeon/radeon_texstate.c

index eac95b6659ef69ce6053e0406faad39fcfeba9f5..4937b0665d1cfc6cdfd63b50a0ace5a36cb69f2d 100644 (file)
@@ -1408,6 +1408,10 @@ static void setup_hardware_state(r200ContextPtr rmesa, radeonTexObj *t)
       t->base.Image[0][t->mt->firstLevel];
    GLint log2Width, log2Height, log2Depth, texelBytes;
    
+   if ( t->bo ) {
+       return;
+   }
+
    log2Width  = firstImage->WidthLog2;
    log2Height = firstImage->HeightLog2;
    log2Depth  = firstImage->DepthLog2;
index a24b5c8830068bf8b009f9b0277fe00499a2d17b..42356cd37b8c0f9de098681ebefac11f365c9304 100644 (file)
@@ -1006,7 +1006,7 @@ static GLboolean setup_hardware_state(r100ContextPtr rmesa, radeonTexObj *t, int
    const struct gl_texture_image *firstImage;
    GLint log2Width, log2Height, log2Depth, texelBytes;
 
-   if ( t->image_override ) {
+   if ( t->bo ) {
        return GL_TRUE;
    }