Module: Mesa Branch: master Commit: 745f0b8a31c82adcc5093a5dfd7ede9a87305b63 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=745f0b8a31c82adcc5093a5dfd7ede9a87305b63
Author: Marek Olšák <[email protected]> Date: Thu Nov 12 14:34:24 2020 -0500 winsys/amdgpu: move amdgpu_winsys_bo::lock for better packing Reviewed-by: Pierre-Eric Pelloux-Prayer <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7585> --- src/gallium/winsys/amdgpu/drm/amdgpu_bo.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gallium/winsys/amdgpu/drm/amdgpu_bo.h b/src/gallium/winsys/amdgpu/drm/amdgpu_bo.h index 9ad7214686f..ada15342705 100644 --- a/src/gallium/winsys/amdgpu/drm/amdgpu_bo.h +++ b/src/gallium/winsys/amdgpu/drm/amdgpu_bo.h @@ -93,6 +93,7 @@ struct amdgpu_winsys_bo { bool is_user_ptr; uint32_t unique_id; uint64_t va; + simple_mtx_t lock; /* how many command streams is this bo referenced in? */ int num_cs_references; @@ -110,8 +111,6 @@ struct amdgpu_winsys_bo { unsigned num_fences; unsigned max_fences; struct pipe_fence_handle **fences; - - simple_mtx_t lock; }; struct amdgpu_slab { _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
