From d15cc1f55a7fa511d62124c1b4dd7f12c0ab240c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Nicolai=20H=C3=A4hnle?= Date: Tue, 19 Jun 2018 13:53:01 +0200 Subject: [PATCH] radeonsi: reduce MAX_GEOMETRY_OUTPUT_VERTICES This fixes piglit spec@glsl-1.50@gs-max-output on gfx9. Reviewed-by: Bas Nieuwenhuizen --- src/gallium/drivers/radeonsi/si_get.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeonsi/si_get.c b/src/gallium/drivers/radeonsi/si_get.c index c1bddca1a66..0c561e7ca91 100644 --- a/src/gallium/drivers/radeonsi/si_get.c +++ b/src/gallium/drivers/radeonsi/si_get.c @@ -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: -- 2.30.2