diff options
author | Rob Clark <robdclark@gmail.com> | 2016-06-16 23:37:38 +0300 |
---|---|---|
committer | Rob Clark <robdclark@gmail.com> | 2016-09-16 00:43:51 +0300 |
commit | f44d32c79fd591179820d6ce4645c4c2799e6d40 (patch) | |
tree | d5e8e441dca58618ac700c384d3c3981fc8d8332 /drivers/gpu/drm/msm/msm_gem_submit.c | |
parent | f0a42bb5423a1387e54a2d3451a10d4358b8cfb6 (diff) | |
download | linux-f44d32c79fd591179820d6ce4645c4c2799e6d40.tar.xz |
drm/msm: move fence allocation out of msm_gpu_submit()
Prep work for next patch.
Signed-off-by: Rob Clark <robdclark@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/msm/msm_gem_submit.c')
-rw-r--r-- | drivers/gpu/drm/msm/msm_gem_submit.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/gpu/drm/msm/msm_gem_submit.c b/drivers/gpu/drm/msm/msm_gem_submit.c index 3a4a8ddeb1db..65284febb2f9 100644 --- a/drivers/gpu/drm/msm/msm_gem_submit.c +++ b/drivers/gpu/drm/msm/msm_gem_submit.c @@ -488,7 +488,14 @@ int msm_ioctl_gem_submit(struct drm_device *dev, void *data, submit->nr_cmds = i; - ret = msm_gpu_submit(gpu, submit, ctx); + submit->fence = msm_fence_alloc(gpu->fctx); + if (IS_ERR(submit->fence)) { + ret = PTR_ERR(submit->fence); + submit->fence = NULL; + goto out; + } + + msm_gpu_submit(gpu, submit, ctx); args->fence = submit->fence->seqno; |