mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 10:50:10 +01:00
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:
parent
d31d25f634
commit
451f030c06
1 changed files with 2 additions and 1 deletions
|
|
@ -810,7 +810,8 @@ static void radv_postprocess_config(const struct radv_physical_device *pdevice,
|
|||
} else if (es_stage == MESA_SHADER_TESS_EVAL) {
|
||||
bool enable_prim_id = info->tes.export_prim_id || info->info.uses_prim_id;
|
||||
es_vgpr_comp_cnt = enable_prim_id ? 3 : 2;
|
||||
}
|
||||
} else
|
||||
unreachable("Unexpected ES shader stage");
|
||||
|
||||
bool tes_triangles = stage == MESA_SHADER_TESS_EVAL &&
|
||||
info->tes.primitive_mode >= 4; /* GL_TRIANGLES */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue