diff options
author | Marek Olšák <marek.olsak@amd.com> | 2015-05-29 17:13:12 +0200 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2015-08-05 13:47:50 -0400 |
commit | 2a344a8d8a7af0b242b262866742c253cd55d334 (patch) | |
tree | 48b4d6fa070c9b708e7e4973eac45e0e52a09937 /amdgpu/amdgpu_internal.h | |
parent | 1041cfdc38692721364557ce61d7abe71a1a9cbf (diff) | |
download | external_libdrm-2a344a8d8a7af0b242b262866742c253cd55d334.tar.gz external_libdrm-2a344a8d8a7af0b242b262866742c253cd55d334.tar.bz2 external_libdrm-2a344a8d8a7af0b242b262866742c253cd55d334.zip |
amdgpu: don't use amdgpu_cs_create_ib for allocation of the fence BO
amdgpu_cs_create_ib will go away.
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Diffstat (limited to 'amdgpu/amdgpu_internal.h')
-rw-r--r-- | amdgpu/amdgpu_internal.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/amdgpu/amdgpu_internal.h b/amdgpu/amdgpu_internal.h index e5a457ab..a4c29894 100644 --- a/amdgpu/amdgpu_internal.h +++ b/amdgpu/amdgpu_internal.h @@ -103,7 +103,8 @@ struct amdgpu_context { in good sequence. */ pthread_mutex_t sequence_mutex; /** Buffer for user fences */ - struct amdgpu_ib *fence_ib; + struct amdgpu_bo *fence_bo; + void *fence_cpu; /** The newest expired fence for the ring of the ip blocks. */ uint64_t expired_fences[AMDGPU_HW_IP_NUM][AMDGPU_HW_IP_INSTANCE_MAX_COUNT][AMDGPU_CS_MAX_RINGS]; /* context id*/ |