diff options
author | Marek Olšák <[email protected]> | 2015-02-22 18:09:18 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2015-07-23 00:59:33 +0200 |
commit | 5aa5f9082347941fd8ac2fc3e94cd91aa1489982 (patch) | |
tree | 7bf290aa74cebc7522df286acbee2337874262e2 /src/gallium/drivers | |
parent | 3344699243b856c3bc7b8ea08a949d2e3274e871 (diff) |
radeonsi: set the rasterization primitive type for tessellation
Reviewed-by: Michel Dänzer <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_state_draw.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; |