radeonsi/gfx10: gfx10 can render up to 8192 layers
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Tue, 14 Nov 2017 15:10:10 +0000 (16:10 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 3 Jul 2019 19:51:12 +0000 (15:51 -0400)
Acked-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/gallium/drivers/radeonsi/si_get.c

index 5d08bdf83e6fcb8439004db4a3d54643359cf2e4..59d07523fbe384ef2b01ec9a2b47e3b8aca60167 100644 (file)
@@ -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;