drm/vmwgfx: Expose SM4_1 param to user space
A new param DRM_VMW_PARAM_SM4_1, is added for user space to determine availability of SM4.1. Minor version bump for SM4.1. Signed-off-by: Deepak Rawat <drawat@vmware.com> Reviewed-by: Sinclair Yeh <syeh@vmware.com> Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com> Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
This commit is contained in:
parent
f9261b30d9
commit
9b07b287aa
|
@ -43,10 +43,10 @@
|
||||||
#include <linux/sync_file.h>
|
#include <linux/sync_file.h>
|
||||||
|
|
||||||
#define VMWGFX_DRIVER_NAME "vmwgfx"
|
#define VMWGFX_DRIVER_NAME "vmwgfx"
|
||||||
#define VMWGFX_DRIVER_DATE "20180322"
|
#define VMWGFX_DRIVER_DATE "20180704"
|
||||||
#define VMWGFX_DRIVER_MAJOR 2
|
#define VMWGFX_DRIVER_MAJOR 2
|
||||||
#define VMWGFX_DRIVER_MINOR 14
|
#define VMWGFX_DRIVER_MINOR 15
|
||||||
#define VMWGFX_DRIVER_PATCHLEVEL 1
|
#define VMWGFX_DRIVER_PATCHLEVEL 0
|
||||||
#define VMWGFX_FILE_PAGE_OFFSET 0x00100000
|
#define VMWGFX_FILE_PAGE_OFFSET 0x00100000
|
||||||
#define VMWGFX_FIFO_STATIC_SIZE (1024*1024)
|
#define VMWGFX_FIFO_STATIC_SIZE (1024*1024)
|
||||||
#define VMWGFX_MAX_RELOCATIONS 2048
|
#define VMWGFX_MAX_RELOCATIONS 2048
|
||||||
|
|
|
@ -116,6 +116,9 @@ int vmw_getparam_ioctl(struct drm_device *dev, void *data,
|
||||||
case DRM_VMW_PARAM_DX:
|
case DRM_VMW_PARAM_DX:
|
||||||
param->value = dev_priv->has_dx;
|
param->value = dev_priv->has_dx;
|
||||||
break;
|
break;
|
||||||
|
case DRM_VMW_PARAM_SM4_1:
|
||||||
|
param->value = dev_priv->has_sm4_1;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
|
@ -82,6 +82,9 @@ extern "C" {
|
||||||
*
|
*
|
||||||
* DRM_VMW_PARAM_OVERLAY_IOCTL:
|
* DRM_VMW_PARAM_OVERLAY_IOCTL:
|
||||||
* Does the driver support the overlay ioctl.
|
* Does the driver support the overlay ioctl.
|
||||||
|
*
|
||||||
|
* DRM_VMW_PARAM_SM4_1
|
||||||
|
* SM4_1 support is enabled.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define DRM_VMW_PARAM_NUM_STREAMS 0
|
#define DRM_VMW_PARAM_NUM_STREAMS 0
|
||||||
|
@ -98,6 +101,7 @@ extern "C" {
|
||||||
#define DRM_VMW_PARAM_SCREEN_TARGET 11
|
#define DRM_VMW_PARAM_SCREEN_TARGET 11
|
||||||
#define DRM_VMW_PARAM_DX 12
|
#define DRM_VMW_PARAM_DX 12
|
||||||
#define DRM_VMW_PARAM_HW_CAPS2 13
|
#define DRM_VMW_PARAM_HW_CAPS2 13
|
||||||
|
#define DRM_VMW_PARAM_SM4_1 14
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* enum drm_vmw_handle_type - handle type for ref ioctls
|
* enum drm_vmw_handle_type - handle type for ref ioctls
|
||||||
|
|
Loading…
Reference in New Issue