winsys/radeon: add buffer_get_reloc_offset
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Tue, 4 Oct 2016 08:50:55 +0000 (10:50 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Tue, 4 Oct 2016 14:37:44 +0000 (16:37 +0200)
commitdfc1afda83a22d8e6b23f003748cd78fd089a0ac
treef37c99fa34c76032019ecfef3d1df86012be3586
parent71a5cf6f3b8c6baee8ec71f1a2bef3b2efa5b91a
winsys/radeon: add buffer_get_reloc_offset

Really fix the bug that was supposed to be fixed by commits 3e7cced4b and
a48bf02d: even when virtual addresses are used, the legacy relocation-based
method with offsets relative to the kernel's buffer object are used for
video submissions.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=97969
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeon/radeon_uvd.c
src/gallium/drivers/radeon/radeon_vce.c
src/gallium/drivers/radeon/radeon_winsys.h
src/gallium/winsys/radeon/drm/radeon_drm_bo.c