From: Marek Olšák Date: Sun, 22 Feb 2015 17:09:18 +0000 (+0100) Subject: radeonsi: set the rasterization primitive type for tessellation X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5aa5f9082347941fd8ac2fc3e94cd91aa1489982;p=mesa.git radeonsi: set the rasterization primitive type for tessellation Reviewed-by: Michel Dänzer --- diff --git a/src/gallium/drivers/radeonsi/si_state_draw.c b/src/gallium/drivers/radeonsi/si_state_draw.c index dc90d3f5fb5..1793c2e6f91 100644 --- a/src/gallium/drivers/radeonsi/si_state_draw.c +++ b/src/gallium/drivers/radeonsi/si_state_draw.c @@ -730,6 +730,9 @@ void si_draw_vbo(struct pipe_context *ctx, const struct pipe_draw_info *info) * current_rast_prim for this draw_vbo call. */ if (sctx->gs_shader) sctx->current_rast_prim = sctx->gs_shader->gs_output_prim; + else if (sctx->tes_shader) + sctx->current_rast_prim = + sctx->tes_shader->info.properties[TGSI_PROPERTY_TES_PRIM_MODE]; else sctx->current_rast_prim = info->mode;