From eba9e9dd1d24f8f495f8db1a26d8ec9028f94eec Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Sun, 29 Jan 2017 22:28:04 +0100 Subject: [PATCH] radeonsi: handle count_from_stream_output in a few IA_MULTI_VGT_PARAM cases MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reviewed-by: Nicolai Hähnle --- src/gallium/drivers/radeonsi/si_state_draw.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/radeonsi/si_state_draw.c b/src/gallium/drivers/radeonsi/si_state_draw.c index aa79b8fcb58..16d905772a6 100644 --- a/src/gallium/drivers/radeonsi/si_state_draw.c +++ b/src/gallium/drivers/radeonsi/si_state_draw.c @@ -432,7 +432,8 @@ static unsigned si_get_ia_multi_vgt_param(struct si_context *sctx, key.u.multi_instances_smaller_than_primgroup = info->indirect || (info->instance_count > 1 && - si_num_prims_for_vertices(info) < primgroup_size); + (info->count_from_stream_output || + si_num_prims_for_vertices(info) < primgroup_size)); key.u.primitive_restart = info->primitive_restart; key.u.count_from_stream_output = info->count_from_stream_output != NULL; @@ -452,7 +453,8 @@ static unsigned si_get_ia_multi_vgt_param(struct si_context *sctx, G_028AA8_SWITCH_ON_EOI(ia_multi_vgt_param) && (info->indirect || (info->instance_count > 1 && - si_num_prims_for_vertices(info) <= 1))) + (info->count_from_stream_output || + si_num_prims_for_vertices(info) <= 1)))) sctx->b.flags |= SI_CONTEXT_VGT_FLUSH; } -- 2.30.2