mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-08 10:40:11 +01:00
r600g: fix for HTILE on R6xx
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
0967970768
commit
ef162cf13d
1 changed files with 6 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue