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

Author: Andres Rodriguez <[email protected]>
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: [email protected]
Reviewed-by: Bas Nieuwenhuizen <[email protected]>

---

 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;
 }
 

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to