aboutsummaryrefslogtreecommitdiffstats
path: root/amdgpu
diff options
context:
space:
mode:
Diffstat (limited to 'amdgpu')
-rw-r--r--amdgpu/amdgpu_cs.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/amdgpu/amdgpu_cs.c b/amdgpu/amdgpu_cs.c
index 614904da..72a2465c 100644
--- a/amdgpu/amdgpu_cs.c
+++ b/amdgpu/amdgpu_cs.c
@@ -707,6 +707,7 @@ static int amdgpu_cs_submit_one(amdgpu_device_handle dev,
707 uint64_t *chunk_array; 707 uint64_t *chunk_array;
708 struct drm_amdgpu_cs_chunk *chunks; 708 struct drm_amdgpu_cs_chunk *chunks;
709 struct drm_amdgpu_cs_chunk_data *chunk_data; 709 struct drm_amdgpu_cs_chunk_data *chunk_data;
710 uint32_t bo_list_handle;
710 711
711 if (ibs_request->ip_type >= AMDGPU_HW_IP_NUM) 712 if (ibs_request->ip_type >= AMDGPU_HW_IP_NUM)
712 return -EINVAL; 713 return -EINVAL;
@@ -754,10 +755,11 @@ static int amdgpu_cs_submit_one(amdgpu_device_handle dev,
754 } 755 }
755 756
756 r = amdgpu_cs_create_bo_list(dev, context, ibs_request, NULL, 757 r = amdgpu_cs_create_bo_list(dev, context, ibs_request, NULL,
757 &cs.in.bo_list_handle); 758 &bo_list_handle);
758 if (r) 759 if (r)
759 goto error_unlock; 760 goto error_unlock;
760 761
762 cs.in.bo_list_handle = bo_list_handle;
761 pthread_mutex_lock(&context->sequence_mutex); 763 pthread_mutex_lock(&context->sequence_mutex);
762 764
763 if (ibs_request->ip_type != AMDGPU_HW_IP_UVD && 765 if (ibs_request->ip_type != AMDGPU_HW_IP_UVD &&
@@ -805,7 +807,7 @@ static int amdgpu_cs_submit_one(amdgpu_device_handle dev,
805 807
806 pthread_mutex_unlock(&context->sequence_mutex); 808 pthread_mutex_unlock(&context->sequence_mutex);
807 809
808 r = amdgpu_cs_free_bo_list(dev, cs.in.bo_list_handle); 810 r = amdgpu_cs_free_bo_list(dev, bo_list_handle);
809 if (r) 811 if (r)
810 goto error_free; 812 goto error_free;
811 813