From: Samuel Pitoiset Date: Tue, 9 Jul 2019 06:44:01 +0000 (+0200) Subject: radv: set correct number of VGPRs for GS on GFX10 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3f50007ad8b26a884d72df50914e5f161eb8d8a1;p=mesa.git radv: set correct number of VGPRs for GS on GFX10 Signed-off-by: Samuel Pitoiset Reviewed-by: Dave Airlie --- diff --git a/src/amd/vulkan/radv_shader.c b/src/amd/vulkan/radv_shader.c index ec68f51901f..8aa5880a38b 100644 --- a/src/amd/vulkan/radv_shader.c +++ b/src/amd/vulkan/radv_shader.c @@ -795,7 +795,7 @@ static void radv_postprocess_config(const struct radv_physical_device *pdevice, } if (pdevice->rad_info.chip_class >= GFX10 && - (stage == MESA_SHADER_VERTEX || stage == MESA_SHADER_TESS_EVAL)) { + (stage == MESA_SHADER_VERTEX || stage == MESA_SHADER_TESS_EVAL || stage == MESA_SHADER_GEOMETRY)) { unsigned gs_vgpr_comp_cnt, es_vgpr_comp_cnt; /* VGPR5-8: (VertexID, UserVGPR0, UserVGPR1, UserVGPR2 / InstanceID) */