From 7446a0407d4e61a826385c11ed6c401837baf095 Mon Sep 17 00:00:00 2001 From: Michel Dänzer Date: Wed, 16 May 2012 23:52:19 +0200 Subject: gallium/radeon: Fix r300g tiling breakage. Commit 11f056a3f0b87e86267efa8b5ac9d36a343c9dc1 broke the r300g build. Fix it up, and reinstate some code which isn't needed by r600g and radeonsi but is by r300g. --- src/gallium/drivers/radeonsi/r600_texture.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gallium/drivers/radeonsi/r600_texture.c') diff --git a/src/gallium/drivers/radeonsi/r600_texture.c b/src/gallium/drivers/radeonsi/r600_texture.c index 80d5c7c0ee3..8a62d68ff86 100644 --- a/src/gallium/drivers/radeonsi/r600_texture.c +++ b/src/gallium/drivers/radeonsi/r600_texture.c @@ -461,6 +461,7 @@ static boolean r600_texture_get_handle(struct pipe_screen* screen, struct r600_screen *rscreen = (struct r600_screen*)screen; rscreen->ws->buffer_set_tiling(resource->buf, + NULL, surface->level[0].mode >= RADEON_SURF_MODE_1D ? RADEON_LAYOUT_TILED : RADEON_LAYOUT_LINEAR, surface->level[0].mode >= RADEON_SURF_MODE_2D ? -- cgit v1.2.3