radv: the number of VGPR_COMP_CNT for GS is expected to be 0 on GFX8
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 26 Jun 2019 13:11:01 +0000 (15:11 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 1 Jul 2019 12:59:19 +0000 (14:59 +0200)
Just move around the switch case. GFX9+ is handled below.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_shader.c

index 3c50471c63b88c902b55d06ab482d323e36896c7..5205dc1bfc53b46d6492e286bffa175ddf3f97be 100644 (file)
@@ -513,10 +513,10 @@ radv_fill_shader_variant(struct radv_device *device,
                }
                break;
        case MESA_SHADER_VERTEX:
-       case MESA_SHADER_GEOMETRY:
                vgpr_comp_cnt = variant->info.vs.vgpr_comp_cnt;
                break;
        case MESA_SHADER_FRAGMENT:
+       case MESA_SHADER_GEOMETRY:
                break;
        case MESA_SHADER_COMPUTE:
                variant->rsrc2 |=