radeonsi: reduce MAX_GEOMETRY_OUTPUT_VERTICES
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Tue, 19 Jun 2018 11:53:01 +0000 (13:53 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 17 Jun 2019 19:14:51 +0000 (15:14 -0400)
This fixes piglit spec@glsl-1.50@gs-max-output on gfx9.

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/gallium/drivers/radeonsi/si_get.c

index c1bddca1a660d5a9cf27e34646d7a4af83af557e..0c561e7ca91825dfcb39f729fbac1b0853070164 100644 (file)
@@ -263,7 +263,10 @@ static int si_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
 
        /* Geometry shader output. */
        case PIPE_CAP_MAX_GEOMETRY_OUTPUT_VERTICES:
-               return 1024;
+               /* gfx9 has to report 256 to make piglit/gs-max-output pass.
+                * gfx8 and earlier can do 1024.
+                */
+               return 256;
        case PIPE_CAP_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS:
                return 4095;
        case PIPE_CAP_MAX_GS_INVOCATIONS: