aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno
diff options
context:
space:
mode:
authorFritz Koenig <[email protected]>2019-02-26 20:06:31 -0800
committerRob Clark <[email protected]>2019-03-01 15:51:16 +0000
commit41082446db4bf728e1722e4bf0ccd34876cd0b04 (patch)
tree215762a32ebe5a8ad9f5d330c682bfe48d0f0d4f /src/gallium/drivers/freedreno
parent2793417ec61ec336b6cb825e06b7eacdd2770204 (diff)
freedreno: pass count to query_dmabuf_modifiers
query_dmabuf_modifiers needs to know the max number of modifiers that the list will hold.
Diffstat (limited to 'src/gallium/drivers/freedreno')
-rw-r--r--src/gallium/drivers/freedreno/freedreno_resource.c2
1 files changed, 1 insertions, 1 deletions
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)