r600g: fix evergreen sampler view + depth interaction

This commit is contained in:
Dave Airlie 2011-02-04 15:26:09 +10:00
parent 9ee765197c
commit fdd35dc912
1 changed files with 1 additions and 1 deletions

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 && tmp->tile_type == 1) {
if (tmp->depth && !tmp->is_flushing_texture) {
r600_texture_depth_flush(ctx, texture, TRUE);
tmp = tmp->flushed_depth_texture;
}