drm/gud: Get offset-adjusted mapping from drm_gem_fb_vmap()
authorThomas Zimmermann <tzimmermann@suse.de>
Tue, 3 Aug 2021 12:59:20 +0000 (14:59 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Sun, 8 Aug 2021 18:27:24 +0000 (20:27 +0200)
commit6d463aaf5632ed9e409fcc72eb90f862341e4d95
tree2eb0ee6840596a58b05b830d8db323f65e0d021e
parentadd8b6a9a568b57b3f61d59cc09b3157a275257e
drm/gud: Get offset-adjusted mapping from drm_gem_fb_vmap()

Pass the data parameter to drm_gem_fb_vmap() to retrieve pointers
to the data. This address is different from the mapping addresses
for framebuffers with non-zero offsets. Replaces gud's internal
computation.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20210803125928.27780-4-tzimmermann@suse.de
drivers/gpu/drm/gud/gud_pipe.c