From d334d591a71c41d6a1eb4f2ea6cdabedc425e42f Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Fri, 24 Feb 2012 17:13:19 +0100 Subject: r600g: rename r600_resource_texture::depth to bool is_depth It's used as a boolean. --- src/gallium/drivers/r600/r600_texture.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gallium/drivers/r600/r600_texture.c') diff --git a/src/gallium/drivers/r600/r600_texture.c b/src/gallium/drivers/r600/r600_texture.c index 7d5f8c8609d..75cceb2db0a 100644 --- a/src/gallium/drivers/r600/r600_texture.c +++ b/src/gallium/drivers/r600/r600_texture.c @@ -576,7 +576,7 @@ r600_texture_create_object(struct pipe_screen *screen, /* only mark depth textures the HW can hit as depth textures */ if (util_format_is_depth_or_stencil(rtex->real_format) && permit_hardware_blit(screen, base)) - rtex->depth = 1; + rtex->is_depth = true; r600_setup_miptree(screen, rtex, array_mode); if (rscreen->use_surface) { @@ -840,7 +840,7 @@ struct pipe_transfer* r600_texture_get_transfer(struct pipe_context *ctx, trans->transfer.level = level; trans->transfer.usage = usage; trans->transfer.box = *box; - if (rtex->depth) { + if (rtex->is_depth) { /* XXX: only readback the rectangle which is being mapped? */ /* XXX: when discard is true, no need to read back from depth texture @@ -915,7 +915,7 @@ void r600_texture_transfer_destroy(struct pipe_context *ctx, pipe_resource_reference(&rtransfer->staging_texture, NULL); } - if (rtex->depth && !rtex->is_flushing_texture) { + if (rtex->is_depth && !rtex->is_flushing_texture) { if ((transfer->usage & PIPE_TRANSFER_WRITE) && rtex->flushed_depth_texture) r600_blit_push_depth(ctx, rtex); } -- cgit v1.2.3