Commit 451f030c authored by Bas Nieuwenhuizen's avatar Bas Nieuwenhuizen

radv: Fix uninitialized warning.

For es_vgpr_comp_cnt.

Fixes: 795adbba "radv/gfx10: Add pipeline state support for tess."
Reviewed-by: 's avatarDave Airlie <airlied@redhat.com>
Reviewed-by: Samuel Pitoiset's avatarSamuel Pitoiset <samuel.pitoiset@gmail.com>
parent d31d25f6
Pipeline #50091 passed with stages
in 10 minutes and 13 seconds
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment