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>
(cherry picked from commit 5eda9673b2)
This commit is contained in:
Pierre-Eric Pelloux-Prayer 2020-12-09 13:51:48 +01:00 committed by Dylan Baker
parent 4691bc5d20
commit bd01bc1f68
2 changed files with 2 additions and 2 deletions

View file

@ -193,7 +193,7 @@
"description": "radeonsi: fix si_get_draw_start_count count value",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"master_sha": null,
"because_sha": "0ce68852c1a8d37e837d64f97a2a2ef5d6b669a5"
},

View file

@ -1624,7 +1624,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;
}
}