r600g: disable dirty handling on texture from depth code.
authorDave Airlie <airlied@redhat.com>
Wed, 22 Sep 2010 04:27:58 +0000 (14:27 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 22 Sep 2010 04:27:58 +0000 (14:27 +1000)
nothing was every dirtying the object again, the mesa-demos
reflect test was just stalling.

this fixes glean readPixSanity.

src/gallium/drivers/r600/r600_texture.c

index 4aabae1fae06d626abfa3c22f3eef01fafdb78e0..37822903e82e3e873d82bef09a58f0b2d67d3b94 100644 (file)
@@ -650,14 +650,7 @@ int r600_texture_from_depth(struct pipe_context *ctx, struct r600_resource_textu
        struct r600_screen *rscreen = r600_screen(ctx->screen);
        int r;
 
-       if (!rtexture->depth) {
-               /* This shouldn't happen maybe print a warning */
-               return 0;
-       }
-       if (rtexture->uncompressed && !rtexture->dirty) {
-               /* Uncompressed bo already in good state */
-               return 0;
-       }
+       /* TODO possible dirty handling */
 
        /* allocate uncompressed texture */
        if (rtexture->uncompressed == NULL) {