summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.h
diff options
context:
space:
mode:
authorxinhui pan <xinhui.pan@amd.com>2021-09-10 02:54:46 +0300
committerAlex Deucher <alexander.deucher@amd.com>2021-09-14 22:59:58 +0300
commit68331d7cf3a9cd0ddfb7463798a209b1e28ac4bf (patch)
tree6286c61d0043380f548f6739cda585a1ce8ec4b1 /drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.h
parentde3a1e336057fd12210eead4367205594e5ac991 (diff)
downloadlinux-68331d7cf3a9cd0ddfb7463798a209b1e28ac4bf.tar.xz
drm/amdgpu: UVD avoid memory allocation during IB test
move BO allocation in sw_init. Signed-off-by: xinhui pan <xinhui.pan@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.h
index edbb8194ee81..76ac9699885d 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.h
@@ -68,6 +68,7 @@ struct amdgpu_uvd {
/* store image width to adjust nb memory state */
unsigned decode_image_width;
uint32_t keyselect;
+ struct amdgpu_bo *ib_bo;
};
int amdgpu_uvd_sw_init(struct amdgpu_device *adev);