aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2015-07-21 12:02:21 -0400
committerAlex Deucher <alexander.deucher@amd.com>2015-08-17 16:50:18 -0400
commit5430a3ffb0b1902e8aea4ed2ba256b1263126e8d (patch)
treec73e8f31dc1ef2f698c5f16fb8bc2c8e4d047b12 /drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
parent5ceb54c68a28fc8af5cf8d32c4fde29c97dd3c18 (diff)
drm/amdgpu: fix UVD/VCE fence handling
We need to return the sequence number to userspace even when we don't use user fences. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
index cef8360698be..4794e14976ca 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
@@ -794,7 +794,7 @@ int amdgpu_cs_ioctl(struct drm_device *dev, void *data, struct drm_file *filp)
794 goto out; 794 goto out;
795 } 795 }
796 796
797 cs->out.handle = parser.uf.sequence; 797 cs->out.handle = parser.ibs[parser.num_ibs - 1].sequence;
798out: 798out:
799 amdgpu_cs_parser_fini(&parser, r, true); 799 amdgpu_cs_parser_fini(&parser, r, true);
800 up_read(&adev->exclusive_lock); 800 up_read(&adev->exclusive_lock);