radeonsi: fix si_get_draw_start_count count value

Fixes: 0ce68852c1 ("radeonsi: implement multi_draw but supporting only 1 draw")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3932
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8004>
This commit is contained in:
Pierre-Eric Pelloux-Prayer
2020-12-09 13:51:48 +01:00
committed by Marge Bot
parent 5d073b5aa1
commit 5eda9673b2

View File

@@ -1761,7 +1761,7 @@ static void si_get_draw_start_count(struct si_context *sctx, const struct pipe_d
}
*start = min_element;
*count = max_element;
*count = max_element - min_element;
}
}