r600g: fix evergreen for depth decompress test
authorDave Airlie <airlied@redhat.com>
Tue, 1 Feb 2011 03:06:35 +0000 (13:06 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 1 Feb 2011 03:06:35 +0000 (13:06 +1000)
src/gallium/drivers/r600/evergreen_state.c

index 8c4f0f9aad6267ce36fcfa8d51c487b0d0833bd8..426b3a9d6d80d980e05466297b2ffeb7f7cef69d 100644 (file)
@@ -381,7 +381,7 @@ static struct pipe_sampler_view *evergreen_create_sampler_view(struct pipe_conte
                R600_ERR("unknow format %d\n", state->format);
        }
        tmp = (struct r600_resource_texture *)texture;
-       if (tmp->depth) {
+       if (tmp->depth && tmp->tile_type == 1) {
                r600_texture_depth_flush(ctx, texture);
                tmp = tmp->flushed_depth_texture;
        }