r600g: fix evergreen for depth decompress test

This commit is contained in:
Dave Airlie 2011-02-01 13:06:35 +10:00
parent aee5f1e40c
commit 8b5a50b31c

View 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;
}