drm/vram-helper: don't use ttm bo->offset v4
authorNirmoy Das <nirmoy.aiemd@gmail.com>
Wed, 24 Jun 2020 18:26:46 +0000 (20:26 +0200)
committerChristian König <christian.koenig@amd.com>
Thu, 25 Jun 2020 09:59:28 +0000 (11:59 +0200)
commit46642a7d4d80588c1f50d06885386f0c2e00fe36
tree07b4c845ec68caa46c41c5b339757c0219393934
parent8ef963ba2d568fa72429afb9b077507fcdf1daab
drm/vram-helper: don't use ttm bo->offset v4

Calculate GEM VRAM bo's offset within vram-helper without depending on
bo->offset.

Signed-off-by: Nirmoy Das <nirmoy.das@amd.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/372938/
drivers/gpu/drm/drm_gem_vram_helper.c