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>
This commit is contained in:
Antonio Caggiano 2021-05-28 14:45:03 +02:00 committed by Marge Bot
parent 978d465986
commit bb1cd03fcc

View 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
};
}