summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2011-02-04 15:26:09 +1000
committerDave Airlie <airlied@redhat.com>2011-02-04 15:26:09 +1000
commitfdd35dc91220046ed66877e60479f155e3a23690 (patch)
tree6012fd2de9ddb8203e0f129252d7f75e1b5422be /src
parent9ee765197c9af24545b4cc774da3b01e056e6299 (diff)
r600g: fix evergreen sampler view + depth interaction
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/r600/evergreen_state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/r600/evergreen_state.c b/src/gallium/drivers/r600/evergreen_state.c
index 73fa171436..b80d804971 100644
--- a/src/gallium/drivers/r600/evergreen_state.c
+++ b/src/gallium/drivers/r600/evergreen_state.c
@@ -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;
}