Mesa (master): r600g: Fix an unused variable warning.

Henri Verbeet hverbeet at kemper.freedesktop.org
Sat Mar 12 07:44:34 PST 2011


Module: Mesa
Branch: master
Commit: 656c314573c2b63ef92fc035dd811b9d6dc82c1c
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=656c314573c2b63ef92fc035dd811b9d6dc82c1c

Author: Henri Verbeet <hverbeet at gmail.com>
Date:   Wed Mar  9 21:57:52 2011 +0100

r600g: Fix an unused variable warning.

---

 src/gallium/drivers/r600/r600_texture.c |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/gallium/drivers/r600/r600_texture.c b/src/gallium/drivers/r600/r600_texture.c
index 86a9def..dc351bf 100644
--- a/src/gallium/drivers/r600/r600_texture.c
+++ b/src/gallium/drivers/r600/r600_texture.c
@@ -405,10 +405,12 @@ struct pipe_resource *r600_texture_create(struct pipe_screen *screen,
 	/* Would like some magic "get_bool_option_once" routine.
 	 */
 	if (force_tiling == -1) {
-		struct r600_screen *rscreen = (struct r600_screen *)screen;
+#if 0
 		/* reenable when 2D tiling is fixed better */
-		/*if (r600_get_minor_version(rscreen->radeon) >= 9)
-			force_tiling = debug_get_bool_option("R600_TILING", TRUE);*/
+		struct r600_screen *rscreen = (struct r600_screen *)screen;
+		if (r600_get_minor_version(rscreen->radeon) >= 9)
+			force_tiling = debug_get_bool_option("R600_TILING", TRUE);
+#endif
 		force_tiling = debug_get_bool_option("R600_TILING", FALSE);
 	}
 



More information about the mesa-commit mailing list