radv: set correct number of VGPRs for GS on GFX10
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 9 Jul 2019 06:44:01 +0000 (08:44 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 9 Jul 2019 07:54:27 +0000 (09:54 +0200)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_shader.c

index ec68f51901f4b5ca8a60af0638172d70ba6cecb0..8aa5880a38bcf0a17db78cbdd63a960d8e4ab5c6 100644 (file)
@@ -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) */