radv: fix computing the number of ES VGPRS for TES on GFX10
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
@@ -802,7 +802,8 @@ static void radv_postprocess_config(const struct radv_physical_device *pdevice,
|
|||||||
if (stage == MESA_SHADER_VERTEX) {
|
if (stage == MESA_SHADER_VERTEX) {
|
||||||
es_vgpr_comp_cnt = info->info.vs.needs_instance_id ? 3 : 0;
|
es_vgpr_comp_cnt = info->info.vs.needs_instance_id ? 3 : 0;
|
||||||
} else if (stage == MESA_SHADER_TESS_EVAL) {
|
} 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 &&
|
bool tes_triangles = stage == MESA_SHADER_TESS_EVAL &&
|
||||||
|
Reference in New Issue
Block a user