aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Olšák2015-05-29 10:13:12 -0500
committerAlex Deucher2015-08-05 12:47:50 -0500
commit2a344a8d8a7af0b242b262866742c253cd55d334 (patch)
tree48b4d6fa070c9b708e7e4973eac45e0e52a09937 /amdgpu/amdgpu_internal.h
parent1041cfdc38692721364557ce61d7abe71a1a9cbf (diff)
downloadexternal-libgbm-2a344a8d8a7af0b242b262866742c253cd55d334.tar.gz
external-libgbm-2a344a8d8a7af0b242b262866742c253cd55d334.tar.xz
external-libgbm-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.h3
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 {
103 in good sequence. */ 103 in good sequence. */
104 pthread_mutex_t sequence_mutex; 104 pthread_mutex_t sequence_mutex;
105 /** Buffer for user fences */ 105 /** Buffer for user fences */
106 struct amdgpu_ib *fence_ib; 106 struct amdgpu_bo *fence_bo;
107 void *fence_cpu;
107 /** The newest expired fence for the ring of the ip blocks. */ 108 /** The newest expired fence for the ring of the ip blocks. */
108 uint64_t expired_fences[AMDGPU_HW_IP_NUM][AMDGPU_HW_IP_INSTANCE_MAX_COUNT][AMDGPU_CS_MAX_RINGS]; 109 uint64_t expired_fences[AMDGPU_HW_IP_NUM][AMDGPU_HW_IP_INSTANCE_MAX_COUNT][AMDGPU_CS_MAX_RINGS];
109 /* context id*/ 110 /* context id*/