radeonsi: allow instance_count == 0 on chips that handle it correctly

Let's remove this overhead.

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8600>
This commit is contained in:
Marek Olšák 2021-01-11 06:35:43 -05:00 committed by Marge Bot
parent 76d6351dab
commit bc0508ad38

View file

@ -1631,7 +1631,7 @@ static void si_draw_vbo(struct pipe_context *ctx,
* no workaround for indirect draws, but we can at least skip
* direct draws.
*/
if (unlikely(!indirect && !instance_count))
if (GFX_VERSION <= GFX7 && unlikely(!indirect && !instance_count))
return;
struct si_shader_selector *vs = sctx->vs_shader.cso;