diff options
author | Marek Olšák <[email protected]> | 2017-01-29 22:28:04 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-01-30 17:45:29 +0100 |
commit | eba9e9dd1d24f8f495f8db1a26d8ec9028f94eec (patch) | |
tree | 8d11b179bb5c948f19abdf6cc9d7613e79fe4197 /src/gallium/drivers | |
parent | a0740d59aa97a08d89998cb57138e8217a331af6 (diff) |
radeonsi: handle count_from_stream_output in a few IA_MULTI_VGT_PARAM cases
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_state_draw.c | 6 |
1 files 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; } |