]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
drm/vmwgfx: Use enum to represent graphics context capabilities
authorDeepak Rawat <drawat.floss@gmail.com>
Thu, 13 Dec 2018 19:44:42 +0000 (11:44 -0800)
committerRoland Scheidegger <sroland@vmware.com>
Mon, 23 Mar 2020 21:39:34 +0000 (22:39 +0100)
commit878c6ecd3e24dc215a9f5e1c32b9873be35c1ff0
treeb7f46549ebffc570ead949ca52b2d459d8b820bc
parent3d143954229ef89ca7bae5fe260ab77496f6582c
drm/vmwgfx: Use enum to represent graphics context capabilities

Instead of having different bool in device private to represent
incremental graphics context capabilities, add a new sm type enum.

v2: Use enum instead of bit flag.

v3: Incorporated review comments.

Signed-off-by: Deepak Rawat <drawat.floss@gmail.com>
Reviewed-by: Thomas Hellström (VMware) <thomas_os@shipmail.org>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Signed-off-by: Roland Scheidegger <sroland@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_context.c
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
drivers/gpu/drm/vmwgfx/vmwgfx_drv.h
drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c
drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c
drivers/gpu/drm/vmwgfx/vmwgfx_kms.c
drivers/gpu/drm/vmwgfx/vmwgfx_mob.c
drivers/gpu/drm/vmwgfx/vmwgfx_surface.c