[Mesa-dev] [PATCH] radv: fix check for perftest options size
Samuel Pitoiset
samuel.pitoiset at gmail.com
Fri Oct 19 06:40:12 UTC 2018
Reviewed-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
On 10/18/18 9:40 PM, Andres Rodriguez wrote:
> 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 429d47325a3..976c42c98f1 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-dev
mailing list