projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2793417
)
freedreno: pass count to query_dmabuf_modifiers
author
Fritz Koenig
<frkoenig@google.com>
Wed, 27 Feb 2019 04:06:31 +0000
(20:06 -0800)
committer
Rob Clark
<robdclark@gmail.com>
Fri, 1 Mar 2019 15:51:16 +0000
(15:51 +0000)
query_dmabuf_modifiers needs to know the max number
of modifiers that the list will hold.
src/gallium/drivers/freedreno/freedreno_resource.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/freedreno/freedreno_resource.c
b/src/gallium/drivers/freedreno/freedreno_resource.c
index 5635d8ffde7b7621b24a1604544c761f6526d664..22e3874a246e12d76b600d1babc19bfa09c7059e 100644
(file)
--- 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)