summaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan/radv_shader.c
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2019-07-09 08:27:30 +0200
committerSamuel Pitoiset <[email protected]>2019-07-09 09:54:14 +0200
commitd2a8b63a2c3963d670887ae442671b01b306632d (patch)
tree3d730a3c5c9e23234147582674315e9bb0b6ad90 /src/amd/vulkan/radv_shader.c
parent2974df819e40563916242eae7acddc0200fd69a0 (diff)
radv: fix computing the number of ES VGPRS for TES on GFX10
Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_shader.c')
-rw-r--r--src/amd/vulkan/radv_shader.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_shader.c b/src/amd/vulkan/radv_shader.c
index b6270136643..ec68f51901f 100644
--- a/src/amd/vulkan/radv_shader.c
+++ b/src/amd/vulkan/radv_shader.c
@@ -802,7 +802,8 @@ static void radv_postprocess_config(const struct radv_physical_device *pdevice,
if (stage == MESA_SHADER_VERTEX) {
es_vgpr_comp_cnt = info->info.vs.needs_instance_id ? 3 : 0;
} else if (stage == MESA_SHADER_TESS_EVAL) {
- es_vgpr_comp_cnt = info->info.vs.needs_instance_id ? 3 : 2;
+ bool enable_prim_id = info->tes.export_prim_id || info->info.uses_prim_id;
+ es_vgpr_comp_cnt = enable_prim_id ? 3 : 2;
}
bool tes_triangles = stage == MESA_SHADER_TESS_EVAL &&