radv: Fix uninitialized warning.
For es_vgpr_comp_cnt.
Fixes: 795adbbadd
"radv/gfx10: Add pipeline state support for tess."
Reviewed-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
This commit is contained in:
@@ -810,7 +810,8 @@ static void radv_postprocess_config(const struct radv_physical_device *pdevice,
|
|||||||
} else if (es_stage == MESA_SHADER_TESS_EVAL) {
|
} else if (es_stage == MESA_SHADER_TESS_EVAL) {
|
||||||
bool enable_prim_id = info->tes.export_prim_id || info->info.uses_prim_id;
|
bool enable_prim_id = info->tes.export_prim_id || info->info.uses_prim_id;
|
||||||
es_vgpr_comp_cnt = enable_prim_id ? 3 : 2;
|
es_vgpr_comp_cnt = enable_prim_id ? 3 : 2;
|
||||||
}
|
} else
|
||||||
|
unreachable("Unexpected ES shader stage");
|
||||||
|
|
||||||
bool tes_triangles = stage == MESA_SHADER_TESS_EVAL &&
|
bool tes_triangles = stage == MESA_SHADER_TESS_EVAL &&
|
||||||
info->tes.primitive_mode >= 4; /* GL_TRIANGLES */
|
info->tes.primitive_mode >= 4; /* GL_TRIANGLES */
|
||||||
|
Reference in New Issue
Block a user