Mesa (master): r600g: disable tiling for 422 formats again

Marek Olšák mareko at kemper.freedesktop.org
Thu Aug 16 19:01:05 UTC 2012


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

Author: Marek Olšák <maraeo at gmail.com>
Date:   Thu Aug 16 20:36:40 2012 +0200

r600g: disable tiling for 422 formats again

---

 src/gallium/drivers/r600/r600_texture.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/gallium/drivers/r600/r600_texture.c b/src/gallium/drivers/r600/r600_texture.c
index c1499e6..b9b3ae8 100644
--- a/src/gallium/drivers/r600/r600_texture.c
+++ b/src/gallium/drivers/r600/r600_texture.c
@@ -322,6 +322,10 @@ struct pipe_resource *r600_texture_create(struct pipe_screen *screen,
 		}
 	}
 
+	/* XXX tiling is broken for the 422 formats */
+	if (util_format_description(templ->format)->layout == UTIL_FORMAT_LAYOUT_SUBSAMPLED)
+		array_mode = V_038000_ARRAY_LINEAR_ALIGNED;
+
 	r = r600_init_surface(rscreen, &surface, templ, array_mode,
 			      templ->flags & R600_RESOURCE_FLAG_TRANSFER,
 			      templ->flags & R600_RESOURCE_FLAG_FLUSHED_DEPTH);




More information about the mesa-commit mailing list