Mesa (master): radv: fix check for perftest options size

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Oct 18 19:42:45 UTC 2018


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

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>

---

 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 6eb3747299..e7d511bdb9 100644
--- a/src/amd/vulkan/radv_device.c
+++ b/src/amd/vulkan/radv_device.c
@@ -483,7 +483,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