Mesa (master): freedreno: pass count to query_dmabuf_modifiers
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Mar 1 15:52:16 UTC 2019
Module: Mesa
Branch: master
Commit: 41082446db4bf728e1722e4bf0ccd34876cd0b04
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=41082446db4bf728e1722e4bf0ccd34876cd0b04
Author: Fritz Koenig <frkoenig at google.com>
Date: Tue Feb 26 20:06:31 2019 -0800
freedreno: pass count to query_dmabuf_modifiers
query_dmabuf_modifiers needs to know the max number
of modifiers that the list will hold.
---
src/gallium/drivers/freedreno/freedreno_resource.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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)
More information about the mesa-commit
mailing list