]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
drm/vram: Set GEM object functions for PRIME
authorThomas Zimmermann <tzimmermann@suse.de>
Tue, 2 Jul 2019 11:50:08 +0000 (13:50 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Wed, 3 Jul 2019 07:31:59 +0000 (09:31 +0200)
commit31070a871fdcb16dd209e6bc0e6ca16be7cfb938
tree1fd05fe362d6cbe66729776a1867b01c017945ce
parent8721215c7ef928293516a9396648592fc7284592
drm/vram: Set GEM object functions for PRIME

PRIME functionality is now provided via the callback functions in
struct drm_gem_object_funcs. The driver-structure functions are obsolete.
As a side effect of this patch, VRAM-based drivers get basic PRIME
support automatically without having to set any flags or additional
fields.

v2:
- use existing PRIME functions for object's table
v3:
- move object table to EOF so it can refer to internal interfaces

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190702115012.4418-2-tzimmermann@suse.de
drivers/gpu/drm/drm_gem_vram_helper.c
include/drm/drm_gem_vram_helper.h