r600g: Fix an unused variable warning.
authorHenri Verbeet <hverbeet@gmail.com>
Wed, 9 Mar 2011 20:57:52 +0000 (21:57 +0100)
committerHenri Verbeet <hverbeet@gmail.com>
Sat, 12 Mar 2011 15:43:58 +0000 (16:43 +0100)
src/gallium/drivers/r600/r600_texture.c

index 86a9defa9af2bd5b53d6337ba6ec764585c36132..dc351bfb62deff8aa2dcecf9fe2bb00301373961 100644 (file)
@@ -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);
        }