From: Fritz Koenig Date: Wed, 27 Feb 2019 04:06:31 +0000 (-0800) Subject: freedreno: pass count to query_dmabuf_modifiers X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=41082446db4bf728e1722e4bf0ccd34876cd0b04;p=mesa.git freedreno: pass count to query_dmabuf_modifiers query_dmabuf_modifiers needs to know the max number of modifiers that the list will hold. --- diff --git a/src/gallium/drivers/freedreno/freedreno_resource.c b/src/gallium/drivers/freedreno/freedreno_resource.c index 5635d8ffde7..22e3874a246 100644 --- a/src/gallium/drivers/freedreno/freedreno_resource.c +++ b/src/gallium/drivers/freedreno/freedreno_resource.c @@ -1014,7 +1014,7 @@ is_supported_modifier(struct pipe_screen *pscreen, enum pipe_format pfmt, /* Get the supported modifiers: */ uint64_t modifiers[count]; - pscreen->query_dmabuf_modifiers(pscreen, pfmt, 0, modifiers, NULL, &count); + pscreen->query_dmabuf_modifiers(pscreen, pfmt, count, modifiers, NULL, &count); for (int i = 0; i < count; i++) if (modifiers[i] == mod)