From bb1cd03fcc850b797cb7b62968303995d4b5cdd2 Mon Sep 17 00:00:00 2001 From: Antonio Caggiano Date: Fri, 28 May 2021 14:45:03 +0200 Subject: 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 Part-of: --- 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 }; } -- cgit v1.2.3