[Mesa-dev] [PATCH 10/13] r600g: fix for HTILE on R6xx
Alex Deucher
alexdeucher at gmail.com
Mon Apr 21 08:27:26 PDT 2014
On Sun, Apr 20, 2014 at 9:59 PM, Marek Olšák <maraeo at gmail.com> wrote:
> From: Marek Olšák <marek.olsak at amd.com>
>
Reviewed-by: Alex Deucher <alexander.deucher at amd.com>
> ---
> src/gallium/drivers/radeon/r600_texture.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/src/gallium/drivers/radeon/r600_texture.c b/src/gallium/drivers/radeon/r600_texture.c
> index 55caece..e30d933 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);
> --
> 1.8.3.2
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list