winsys/amdgpu: move amdgpu_winsys_bo::lock for better packing

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7585>
This commit is contained in:
Marek Olšák
2020-11-12 14:34:24 -05:00
parent bccb9a7457
commit 745f0b8a31
+1 -2
View File
@@ -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 {