From f26631c6de531db121ba1704b14e8af2578fbfe7 Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Tue, 18 Oct 2022 10:02:10 -0700 Subject: [PATCH] freedreno/a6xx: Fix MAX_GEOMETRY_OUTPUT_VERTICES cap Limited by the size of PC_PRIMITIVE_CNTL_5.GS_VERTICES_OUT Signed-off-by: Rob Clark Part-of: --- src/freedreno/ci/freedreno-a630-fails.txt | 1 - src/gallium/drivers/freedreno/freedreno_screen.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/freedreno/ci/freedreno-a630-fails.txt b/src/freedreno/ci/freedreno-a630-fails.txt index 5ca2147794e..30af8fdffd7 100644 --- a/src/freedreno/ci/freedreno-a630-fails.txt +++ b/src/freedreno/ci/freedreno-a630-fails.txt @@ -283,7 +283,6 @@ spec@glsl-1.30@execution@texelfetch fs sampler3d 98x1x9-98x129x9,Fail spec@glsl-1.50@execution@compatibility@vs-gs-texcoord-array-2,Crash spec@glsl-1.50@execution@compatibility@vs-gs-texcoord-array,Crash -spec@glsl-1.50@execution@geometry@end-primitive 0,Fail spec@glsl-1.50@execution@geometry@primitive-id-restart gl_line_loop ffs,Fail spec@glsl-1.50@execution@geometry@primitive-id-restart gl_line_loop other,Fail spec@glsl-1.50@execution@geometry@primitive-id-restart gl_lines_adjacency ffs,Fail diff --git a/src/gallium/drivers/freedreno/freedreno_screen.c b/src/gallium/drivers/freedreno/freedreno_screen.c index a4feda060bc..c0d857dc872 100644 --- a/src/gallium/drivers/freedreno/freedreno_screen.c +++ b/src/gallium/drivers/freedreno/freedreno_screen.c @@ -410,7 +410,7 @@ fd_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param) /* Geometry shaders.. */ case PIPE_CAP_MAX_GEOMETRY_OUTPUT_VERTICES: - return 512; + return 256; case PIPE_CAP_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS: return 2048; case PIPE_CAP_MAX_GS_INVOCATIONS: