drm/vmwgfx: Add surface define v4 command
authorDeepak Rawat <drawat.floss@gmail.com>
Tue, 30 Apr 2019 20:04:55 +0000 (13:04 -0700)
committerRoland Scheidegger <sroland@vmware.com>
Mon, 23 Mar 2020 21:48:57 +0000 (22:48 +0100)
commit2a50f06d639bc6d21e855296c2fa511b080f9a79
tree205b13b2ac9f19a56ac5ecb75327c0b7b9786df9
parent504901dbb0b565fcbe466b0c56f3131586df5afd
drm/vmwgfx: Add surface define v4 command

Surface define v4 added new member buffer_byte_stride. With this patch
add buffer_byte_stride in surface metadata and create surface using new
command if support is available.

Also with this patch replace device specific data types with kernel
types.

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_drv.h
drivers/gpu/drm/vmwgfx/vmwgfx_surface.c
include/uapi/drm/vmwgfx_drm.h