[Mesa-dev] [PATCH 2/4] radv: the number of VGPR_COMP_CNT for GS is expected to be 0 on GFX8

Samuel Pitoiset samuel.pitoiset at gmail.com
Wed Jun 26 13:11:01 UTC 2019


Just move around the switch case. GFX9+ is handled below.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
 src/amd/vulkan/radv_shader.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/amd/vulkan/radv_shader.c b/src/amd/vulkan/radv_shader.c
index 3c50471c63b..5205dc1bfc5 100644
--- a/src/amd/vulkan/radv_shader.c
+++ b/src/amd/vulkan/radv_shader.c
@@ -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 |=
-- 
2.22.0



More information about the mesa-dev mailing list