aboutsummaryrefslogtreecommitdiffstats
path: root/amdgpu
diff options
context:
space:
mode:
authorSabre Shao2017-09-08 04:43:51 -0500
committerMarek Olšák2018-03-08 19:06:28 -0600
commita5329cd990cd1b85e2755f708fd9e48ac06b99a7 (patch)
tree6ad133ed452c75d8342a38eae41552219bec7397 /amdgpu
parent666d59d86b548dc553f295bf2db7513848536768 (diff)
downloadexternal-libdrm-a5329cd990cd1b85e2755f708fd9e48ac06b99a7.tar.gz
external-libdrm-a5329cd990cd1b85e2755f708fd9e48ac06b99a7.tar.xz
external-libdrm-a5329cd990cd1b85e2755f708fd9e48ac06b99a7.zip
drm/amdgpu: Remove IB count checking
Signed-off-by: Sabre Shao <Sabre.Shao@amd.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Diffstat (limited to 'amdgpu')
-rw-r--r--amdgpu/amdgpu_cs.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/amdgpu/amdgpu_cs.c b/amdgpu/amdgpu_cs.c
index 46dffe1d..4ac9bac7 100644
--- a/amdgpu/amdgpu_cs.c
+++ b/amdgpu/amdgpu_cs.c
@@ -195,8 +195,6 @@ static int amdgpu_cs_submit_one(amdgpu_context_handle context,
195 return -EINVAL; 195 return -EINVAL;
196 if (ibs_request->ring >= AMDGPU_CS_MAX_RINGS) 196 if (ibs_request->ring >= AMDGPU_CS_MAX_RINGS)
197 return -EINVAL; 197 return -EINVAL;
198 if (ibs_request->number_of_ibs > AMDGPU_CS_MAX_IBS_PER_SUBMIT)
199 return -EINVAL;
200 if (ibs_request->number_of_ibs == 0) { 198 if (ibs_request->number_of_ibs == 0) {
201 ibs_request->seq_no = AMDGPU_NULL_SUBMIT_SEQ; 199 ibs_request->seq_no = AMDGPU_NULL_SUBMIT_SEQ;
202 return 0; 200 return 0;