Mesa (main): panfrost: Fix pan_pool_ref construction

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Jun 1 17:58:03 UTC 2021


Module: Mesa
Branch: main
Commit: bb1cd03fcc850b797cb7b62968303995d4b5cdd2
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=bb1cd03fcc850b797cb7b62968303995d4b5cdd2

Author: Antonio Caggiano <antonio.caggiano at collabora.com>
Date:   Fri May 28 14:45:03 2021 +0200

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 at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11064>

---

 src/panfrost/lib/pan_pool.h | 4 ++--
 1 file 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
         };
 }
 



More information about the mesa-commit mailing list