From e64633e8c3a5498998a45ab721bf80edca101cf5 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Sun, 22 Sep 2013 13:06:27 +0200 Subject: r600g,radeonsi: share r600_texture.c The function r600_choose_tiling is new and needs a review. The only change in functionality is that it enables 2D tiling for compressed textures on SI. It was probably accidentally turned off. v2: don't make scanout buffers linear --- src/gallium/drivers/r600/r600_state.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gallium/drivers/r600/r600_state.c') diff --git a/src/gallium/drivers/r600/r600_state.c b/src/gallium/drivers/r600/r600_state.c index 36ceb8336e2..b01ab9cac13 100644 --- a/src/gallium/drivers/r600/r600_state.c +++ b/src/gallium/drivers/r600/r600_state.c @@ -1420,8 +1420,8 @@ static void r600_init_color_surface(struct r600_context *rctx, struct r600_cmask_info cmask; struct r600_fmask_info fmask; - r600_texture_get_cmask_info(rscreen, rtex, &cmask); - r600_texture_get_fmask_info(rscreen, rtex, 8, &fmask); + r600_texture_get_cmask_info(&rscreen->b, rtex, &cmask); + r600_texture_get_fmask_info(&rscreen->b, rtex, 8, &fmask); /* CMASK. */ if (!rctx->dummy_cmask || -- cgit v1.2.3