From: Nicolai Hähnle Date: Tue, 14 Nov 2017 15:10:10 +0000 (+0100) Subject: radeonsi/gfx10: gfx10 can render up to 8192 layers X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8598a999eaec924e8edbbb54efa0ced55e70ab11;p=mesa.git radeonsi/gfx10: gfx10 can render up to 8192 layers Acked-by: Bas Nieuwenhuizen --- diff --git a/src/gallium/drivers/radeonsi/si_get.c b/src/gallium/drivers/radeonsi/si_get.c index 5d08bdf83e6..59d07523fbe 100644 --- a/src/gallium/drivers/radeonsi/si_get.c +++ b/src/gallium/drivers/radeonsi/si_get.c @@ -284,9 +284,13 @@ static int si_get_param(struct pipe_screen *pscreen, enum pipe_cap param) case PIPE_CAP_MAX_TEXTURE_CUBE_LEVELS: return 15; /* 16384 */ case PIPE_CAP_MAX_TEXTURE_3D_LEVELS: + if (sscreen->info.chip_class >= GFX10) + return 14; /* textures support 8192, but layered rendering supports 2048 */ return 12; case PIPE_CAP_MAX_TEXTURE_ARRAY_LAYERS: + if (sscreen->info.chip_class >= GFX10) + return 8192; /* textures support 8192, but layered rendering supports 2048 */ return 2048;