From: Marek Olšák Date: Tue, 16 Jul 2019 23:04:48 +0000 (-0400) Subject: radeonsi: fix compute-based culling regression in 1ce52c1e373 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7a764b963a50cfab4a684b492c377d31a669d747;p=mesa.git radeonsi: fix compute-based culling regression in 1ce52c1e373 Reviewed-by: Pierre-Eric Pelloux-Prayer Acked-by: Samuel Pitoiset --- diff --git a/src/gallium/drivers/radeonsi/si_state_draw.c b/src/gallium/drivers/radeonsi/si_state_draw.c index f39b7c653e5..a099805e43d 100644 --- a/src/gallium/drivers/radeonsi/si_state_draw.c +++ b/src/gallium/drivers/radeonsi/si_state_draw.c @@ -759,7 +759,7 @@ static void si_emit_draw_registers(struct si_context *sctx, bool primitive_restart) { struct radeon_cmdbuf *cs = sctx->gfx_cs; - unsigned vgt_prim = si_conv_pipe_prim(info->mode); + unsigned vgt_prim = si_conv_pipe_prim(prim); if (sctx->chip_class >= GFX10) gfx10_emit_ge_cntl(sctx, num_patches);