summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonio Caggiano <antonio.caggiano@collabora.com>2021-05-28 14:45:03 +0200
committerMarge Bot <eric+marge@anholt.net>2021-06-01 17:34:59 +0000
commitbb1cd03fcc850b797cb7b62968303995d4b5cdd2 (patch)
tree2b92cd5693203c137557c037f9a6972efe1b2b66
parent978d4659862e19d547ff295eb43430caf9e27e92 (diff)
downloadmesa-bb1cd03fcc850b797cb7b62968303995d4b5cdd2.tar.gz
mesa-bb1cd03fcc850b797cb7b62968303995d4b5cdd2.tar.bz2
mesa-bb1cd03fcc850b797cb7b62968303995d4b5cdd2.zip
panfrost: Fix pan_pool_ref construction
Fix designator order for `pan_pool_ref` fields by matching declaration order and avoid an error by the C++ compiler. Signed-off-by: Antonio Caggiano <antonio.caggiano@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11064>
-rw-r--r--src/panfrost/lib/pan_pool.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/panfrost/lib/pan_pool.h b/src/panfrost/lib/pan_pool.h
index c98a2b3d449..e30a0921097 100644
--- a/src/panfrost/lib/pan_pool.h
+++ b/src/panfrost/lib/pan_pool.h
@@ -81,8 +81,8 @@ pan_take_ref(struct pan_pool *pool, mali_ptr ptr)
panfrost_bo_reference(pool->transient_bo);
return (struct pan_pool_ref) {
- .gpu = ptr,
- .bo = pool->transient_bo
+ .bo = pool->transient_bo,
+ .gpu = ptr
};
}