Mesa (staging/20.3): radeonsi: fix si_get_draw_start_count count value
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Dec 10 20:43:17 UTC 2020
Module: Mesa
Branch: staging/20.3
Commit: bd01bc1f681a4a43bbe0519827c1ad708eece273
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=bd01bc1f681a4a43bbe0519827c1ad708eece273
Author: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer at amd.com>
Date: Wed Dec 9 13:51:48 2020 +0100
radeonsi: fix si_get_draw_start_count count value
Fixes: 0ce68852c1a ("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 at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8004>
(cherry picked from commit 5eda9673b2347aa33713790b3a04b8363862db2f)
---
.pick_status.json | 2 +-
src/gallium/drivers/radeonsi/si_state_draw.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/.pick_status.json b/.pick_status.json
index 910d8e0efbe..4fdb5c609d1 100644
--- a/.pick_status.json
+++ b/.pick_status.json
@@ -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"
},
diff --git a/src/gallium/drivers/radeonsi/si_state_draw.c b/src/gallium/drivers/radeonsi/si_state_draw.c
index 27176e37272..aba8a6718f0 100644
--- a/src/gallium/drivers/radeonsi/si_state_draw.c
+++ b/src/gallium/drivers/radeonsi/si_state_draw.c
@@ -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;
}
}
More information about the mesa-commit
mailing list