aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/radeon_vce.c
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2014-12-03 15:46:49 +0100
committerAlex Deucher <alexander.deucher@amd.com>2014-12-03 18:26:53 -0500
commit466be3386f1c14451a9a9c0a586a9df5f06eecdf (patch)
treeb57a02538bba206f635b7143e7ddb19e73b02f8e /drivers/gpu/drm/radeon/radeon_vce.c
parentdrm/ttm: optionally move duplicates to a separate list (diff)
downloadlinux-dev-466be3386f1c14451a9a9c0a586a9df5f06eecdf.tar.xz
linux-dev-466be3386f1c14451a9a9c0a586a9df5f06eecdf.zip
drm/radeon: remove duplicates check
Completely unnecessary since the ww_mutex used to reserve a buffer can detect double reservations from the same thread anyway. Signed-off-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to '')
-rw-r--r--drivers/gpu/drm/radeon/radeon_vce.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_vce.c b/drivers/gpu/drm/radeon/radeon_vce.c
index 8b4eea48159d..b3a1698e0443 100644
--- a/drivers/gpu/drm/radeon/radeon_vce.c
+++ b/drivers/gpu/drm/radeon/radeon_vce.c
@@ -467,7 +467,7 @@ int radeon_vce_cs_reloc(struct radeon_cs_parser *p, int lo, int hi,
return -EINVAL;
}
- reloc = p->relocs_ptr[(idx / 4)];
+ reloc = &p->relocs[(idx / 4)];
start = reloc->gpu_offset;
end = start + radeon_bo_size(reloc->robj);
start += offset;