From 19711b0f44a92e450240b7dcbae4f2c147ed6208 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Tue, 9 Feb 2021 10:48:53 +0100 Subject: [PATCH] radv: stop allocating useless ESGS scratch BO on GFX10+ On GFX10+, the ESGS ring is allocated in LDS. This saves one BO when geometry shaders are used, and possibly two BOs if nothing else (tess, scratch, etc) is used. Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen Part-of: --- 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 79daf2d18b5..e9831c72e80 100644 --- a/src/amd/vulkan/radv_pipeline.c +++ b/src/amd/vulkan/radv_pipeline.c @@ -2229,8 +2229,6 @@ gfx10_get_ngg_info(const struct radv_pipeline_key *key, ngg->vgt_esgs_ring_itemsize = 1; } - pipeline->graphics.esgs_ring_size = ngg->esgs_ring_size; - assert(ngg->hw_max_esverts >= min_esverts); /* HW limitation */ }