[Mesa-dev] [PATCH 05/14] r600g: remove obsolete flushed texture initialization in color surface setup

Nicolai Hähnle nhaehnle at gmail.com
Fri Jul 1 14:25:26 UTC 2016


From: Nicolai Hähnle <nicolai.haehnle at amd.com>

Seems to have been unnecessary for quite some time, and seems like an odd
place to do the initialization anyway.
---
 src/gallium/drivers/r600/r600_state.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/src/gallium/drivers/r600/r600_state.c b/src/gallium/drivers/r600/r600_state.c
index e805d33..8b1b951 100644
--- a/src/gallium/drivers/r600/r600_state.c
+++ b/src/gallium/drivers/r600/r600_state.c
@@ -842,12 +842,6 @@ static void r600_init_color_surface(struct r600_context *rctx,
 	int i;
 	bool blend_bypass = 0, blend_clamp = 1, do_endian_swap = FALSE;
 
-	if (rtex->is_depth && !rtex->is_flushing_texture && !r600_can_read_depth(rtex)) {
-		r600_init_flushed_depth_texture(&rctx->b.b, surf->base.texture, NULL);
-		rtex = rtex->flushed_depth_texture;
-		assert(rtex);
-	}
-
 	offset = rtex->surface.level[level].offset;
 	color_view = S_028080_SLICE_START(surf->base.u.tex.first_layer) |
 		     S_028080_SLICE_MAX(surf->base.u.tex.last_layer);
-- 
2.7.4



More information about the mesa-dev mailing list