panfrost: Fix pan_pool_ref construction
authorAntonio Caggiano <antonio.caggiano@collabora.com>
Fri, 28 May 2021 12:45:03 +0000 (14:45 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 1 Jun 2021 17:34:59 +0000 (17:34 +0000)
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>

src/panfrost/lib/pan_pool.h

index c98a2b3..e30a092 100644 (file)
@@ -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
         };
 }