Mesa (staging/18.2): radv: fix check for perftest options size

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Oct 24 09:00:25 UTC 2018


Module: Mesa
Branch: staging/18.2
Commit: 8c4ff233b12cd8d3d97476b75123d2a097efb02f
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8c4ff233b12cd8d3d97476b75123d2a097efb02f

Author: Andres Rodriguez <andresx7 at gmail.com>
Date:   Thu Oct 18 15:32:31 2018 -0400

radv: fix check for perftest options size

It was using the debug options array size.

CC: mesa-stable at lists.freedesktop.org
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
(cherry picked from commit e71a87775e48f2e26864e6c2198c7625e27bbab1)

---

 src/amd/vulkan/radv_device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c
index 4ce98098b5..76074c30f7 100644
--- a/src/amd/vulkan/radv_device.c
+++ b/src/amd/vulkan/radv_device.c
@@ -484,7 +484,7 @@ static const struct debug_control radv_perftest_options[] = {
 const char *
 radv_get_perftest_option_name(int id)
 {
-	assert(id < ARRAY_SIZE(radv_debug_options) - 1);
+	assert(id < ARRAY_SIZE(radv_perftest_options) - 1);
 	return radv_perftest_options[id].string;
 }
 




More information about the mesa-commit mailing list