diff options
author | Dave Airlie <[email protected]> | 2010-10-12 14:43:44 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2010-10-13 15:11:30 +1000 |
commit | 833b4fc11e0fcac36490b036135298232310568a (patch) | |
tree | 2e52916fadfe108dbe48683512bd65c19579fbe9 /src/gallium/drivers | |
parent | 71fa3f8fe21770de6343f4c13a7000cf118a7edd (diff) |
r600g: fix depth0 setting
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/r600/r600_texture.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/r600/r600_texture.c b/src/gallium/drivers/r600/r600_texture.c index 496b28a3b9c..1eaf40fdf0a 100644 --- a/src/gallium/drivers/r600/r600_texture.c +++ b/src/gallium/drivers/r600/r600_texture.c @@ -244,7 +244,7 @@ int r600_texture_depth_flush(struct pipe_context *ctx, resource.format = texture->format; resource.width0 = texture->width0; resource.height0 = texture->height0; - resource.depth0 = 0; + resource.depth0 = 1; resource.last_level = 0; resource.nr_samples = 0; resource.usage = PIPE_USAGE_DYNAMIC; @@ -297,7 +297,7 @@ struct pipe_transfer* r600_texture_get_transfer(struct pipe_context *ctx, resource.format = texture->format; resource.width0 = box->width; resource.height0 = box->height; - resource.depth0 = 0; + resource.depth0 = 1; resource.last_level = 0; resource.nr_samples = 0; resource.usage = PIPE_USAGE_DYNAMIC; |