From: Marek Olšák Date: Sun, 20 Apr 2014 13:17:23 +0000 (+0200) Subject: r600g: fix for HTILE on R6xx X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ef162cf13df96b2c8ab36001b8dab5640cabf05f;p=mesa.git r600g: fix for HTILE on R6xx Reviewed-by: Alex Deucher --- diff --git a/src/gallium/drivers/radeon/r600_texture.c b/src/gallium/drivers/radeon/r600_texture.c index 55caece541f..e30d933093d 100644 --- a/src/gallium/drivers/radeon/r600_texture.c +++ b/src/gallium/drivers/radeon/r600_texture.c @@ -542,6 +542,12 @@ static unsigned r600_texture_htile_alloc_size(struct r600_common_screen *rscreen return 0; } + /* HW bug on R6xx. */ + if (rscreen->chip_class == R600 && + (rtex->surface.level[0].npix_x > 7680 || + rtex->surface.level[0].npix_y > 7680)) + return 0; + /* this alignment and htile size only apply to linear htile buffer */ sw = align(sw, 16 << 3); sh = align(sh, npipes << 3);