r600g: fix depth0 setting
authorDave Airlie <airlied@redhat.com>
Tue, 12 Oct 2010 04:43:44 +0000 (14:43 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 13 Oct 2010 05:11:30 +0000 (15:11 +1000)
src/gallium/drivers/r600/r600_texture.c

index 496b28a3b9c73cf13a80a9f2f0746f79f6dba4e4..1eaf40fdf0a033f7c52e6d0e873037208416882a 100644 (file)
@@ -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;