diff options
author | Nirmoy Das <nirmoy.aiemd@gmail.com> | 2020-06-24 21:26:43 +0300 |
---|---|---|
committer | Christian König <christian.koenig@amd.com> | 2020-06-26 15:00:41 +0300 |
commit | 0b17fc08e396d005c65993c7237f05a107473042 (patch) | |
tree | 6d991793a433726f672888aa76d89c0b4932ca38 /drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c | |
parent | fbd12537b0173810f95fb6bc24a8bd190b8b500f (diff) | |
download | linux-0b17fc08e396d005c65993c7237f05a107473042.tar.xz |
drm/vmwgfx: don't use ttm bo->offset
Calculate GPU offset within vmwgfx driver itself without depending on
bo->offset.
Signed-off-by: Nirmoy Das <nirmoy.das@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/372933/
Signed-off-by: Christian König <christian.koenig@amd.com>
Diffstat (limited to 'drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c')
-rw-r--r-- | drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c b/drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c index 367d5b87ee6a..4284c4bd444d 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c @@ -3696,7 +3696,7 @@ static void vmw_apply_relocations(struct vmw_sw_context *sw_context) bo = &reloc->vbo->base; switch (bo->mem.mem_type) { case TTM_PL_VRAM: - reloc->location->offset += bo->offset; + reloc->location->offset += bo->mem.start << PAGE_SHIFT; reloc->location->gmrId = SVGA_GMR_FRAMEBUFFER; break; case VMW_PL_GMR: |