[Mesa-dev] [PATCH] radv: Don't check for max GL GS invocations.

Bas Nieuwenhuizen bas at basnieuwenhuizen.nl
Sat Oct 21 18:38:16 UTC 2017


We specify 127 instead of 32 as the limit in vulkan.

Fixes: 6bc42855f92 'radv: enable GS on GFX9'
---
 src/amd/vulkan/radv_pipeline.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c
index eac4456a3fb..db550811eaf 100644
--- a/src/amd/vulkan/radv_pipeline.c
+++ b/src/amd/vulkan/radv_pipeline.c
@@ -1196,8 +1196,6 @@ static void calculate_gfx9_gs_info(const VkGraphicsPipelineCreateInfo *pCreateIn
 	unsigned max_gs_prims, gs_prims;
 	unsigned min_es_verts, es_verts, worst_case_es_verts;
 
-	assert(gs_num_invocations <= 32); /* GL maximum */
-
 	if (uses_adjacency || gs_num_invocations > 1)
 		max_gs_prims = 127 / gs_num_invocations;
 	else
-- 
2.14.2



More information about the mesa-dev mailing list