summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/r600/r600_texture.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2010-09-23 16:02:54 +1000
committerDave Airlie <airlied@redhat.com>2010-09-23 16:02:54 +1000
commit6547a82df185e1786e2313cfc4eb254f0a59f5aa (patch)
treedc8575047e39690209e83c61c80500681d2dfef1 /src/gallium/drivers/r600/r600_texture.c
parent2f8453eea3b5ff8d2818517753d3990490f699b8 (diff)
r600g: fix warnings since last commit.
Diffstat (limited to 'src/gallium/drivers/r600/r600_texture.c')
-rw-r--r--src/gallium/drivers/r600/r600_texture.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/r600/r600_texture.c b/src/gallium/drivers/r600/r600_texture.c
index b0d3b28c72..16468c9b1a 100644
--- a/src/gallium/drivers/r600/r600_texture.c
+++ b/src/gallium/drivers/r600/r600_texture.c
@@ -144,7 +144,7 @@ static void r600_texture_destroy(struct pipe_screen *screen,
struct radeon *radeon = (struct radeon *)screen->winsys;
if (rtex->flushed_depth_texture)
- pipe_resource_reference(&rtex->flushed_depth_texture, NULL);
+ pipe_resource_reference((struct pipe_resource **)&rtex->flushed_depth_texture, NULL);
if (resource->bo) {
radeon_ws_bo_reference(radeon, &resource->bo, NULL);
@@ -256,7 +256,7 @@ int r600_texture_depth_flush(struct pipe_context *ctx,
resource.bind |= PIPE_BIND_RENDER_TARGET;
- rtex->flushed_depth_texture = ctx->screen->resource_create(ctx->screen, &resource);
+ rtex->flushed_depth_texture = (struct r600_resource_texture *)ctx->screen->resource_create(ctx->screen, &resource);
if (rtex->flushed_depth_texture == NULL) {
R600_ERR("failed to create temporary texture to hold untiled copy\n");
return -ENOMEM;
@@ -348,7 +348,7 @@ void r600_texture_transfer_destroy(struct pipe_context *ctx,
if (transfer->usage & PIPE_TRANSFER_WRITE) {
// TODO
}
- pipe_resource_reference(&rtex->flushed_depth_texture, NULL);
+ pipe_resource_reference((struct pipe_resource **)&rtex->flushed_depth_texture, NULL);
}
pipe_resource_reference(&transfer->resource, NULL);
FREE(transfer);