Mesa (master): radeonsi: fix si_get_draw_start_count count value

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Dec 10 09:42:31 UTC 2020


Module: Mesa
Branch: master
Commit: 5eda9673b2347aa33713790b3a04b8363862db2f
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=5eda9673b2347aa33713790b3a04b8363862db2f

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>

---

 src/gallium/drivers/radeonsi/si_state_draw.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/radeonsi/si_state_draw.cpp b/src/gallium/drivers/radeonsi/si_state_draw.cpp
index e1ad9999674..3b5c0c58bac 100644
--- a/src/gallium/drivers/radeonsi/si_state_draw.cpp
+++ b/src/gallium/drivers/radeonsi/si_state_draw.cpp
@@ -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;
    }
 }
 



More information about the mesa-commit mailing list