From: Marek Olšák Date: Sun, 29 Jan 2017 21:28:04 +0000 (+0100) Subject: radeonsi: handle count_from_stream_output in a few IA_MULTI_VGT_PARAM cases X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=eba9e9dd1d24f8f495f8db1a26d8ec9028f94eec;p=mesa.git radeonsi: handle count_from_stream_output in a few IA_MULTI_VGT_PARAM cases Reviewed-by: Nicolai Hähnle --- 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; }