summaryrefslogtreecommitdiff
path: root/src/gallium/winsys/amdgpu/drm/amdgpu_bo.h
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2021-02-03 00:03:22 -0500
committerMarge Bot <eric+marge@anholt.net>2021-02-06 05:41:23 +0000
commit04f02e573cefb7eb26c574f971ce11460a2e18f9 (patch)
treec1d164479fe4f0b467678c39d723aa48a4897fd9 /src/gallium/winsys/amdgpu/drm/amdgpu_bo.h
parent96c188d023fa9fd634378b5053138f8b9f28cd05 (diff)
winsys/amdgpu: move amdgpu_winsys_bo::is_user_ptr to the u.real union
It's never true with slab and sparse buffers. Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Reviewed-by: Zoltán Böszörményi <zboszor@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8849>
Diffstat (limited to 'src/gallium/winsys/amdgpu/drm/amdgpu_bo.h')
-rw-r--r--src/gallium/winsys/amdgpu/drm/amdgpu_bo.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/winsys/amdgpu/drm/amdgpu_bo.h b/src/gallium/winsys/amdgpu/drm/amdgpu_bo.h
index 98fb609153c..176d2e1583b 100644
--- a/src/gallium/winsys/amdgpu/drm/amdgpu_bo.h
+++ b/src/gallium/winsys/amdgpu/drm/amdgpu_bo.h
@@ -67,6 +67,8 @@ struct amdgpu_winsys_bo {
uint32_t kms_handle;
int map_count;
+ bool is_user_ptr;
+
/* Whether buffer_get_handle or buffer_from_handle has been called,
* it can only transition from false to true. Protected by lock.
*/
@@ -92,7 +94,6 @@ struct amdgpu_winsys_bo {
struct amdgpu_winsys *ws;
amdgpu_bo_handle bo; /* NULL for slab entries and sparse buffers */
- bool is_user_ptr;
bool use_reusable_pool;
uint32_t unique_id;