Commit f0fce233 authored by Deepak Rawat's avatar Deepak Rawat Committed by Roland Scheidegger

drm/vmwgfx: Add SM5 param for userspace

Add a new param for user-space to determine if kernel module is SM5
capable.
Signed-off-by: default avatarDeepak Rawat <drawat.floss@gmail.com>
Reviewed-by: default avatarThomas Hellström (VMware) <thomas_os@shipmail.org>
Reviewed-by: default avatarRoland Scheidegger <sroland@vmware.com>
Signed-off-by: default avatarRoland Scheidegger <sroland@vmware.com>
parent 2a50f06d
...@@ -119,6 +119,9 @@ int vmw_getparam_ioctl(struct drm_device *dev, void *data, ...@@ -119,6 +119,9 @@ int vmw_getparam_ioctl(struct drm_device *dev, void *data,
case DRM_VMW_PARAM_SM4_1: case DRM_VMW_PARAM_SM4_1:
param->value = has_sm4_1_context(dev_priv); param->value = has_sm4_1_context(dev_priv);
break; break;
case DRM_VMW_PARAM_SM5:
param->value = has_sm5_context(dev_priv);
break;
default: default:
return -EINVAL; return -EINVAL;
} }
......
...@@ -86,6 +86,9 @@ extern "C" { ...@@ -86,6 +86,9 @@ extern "C" {
* *
* DRM_VMW_PARAM_SM4_1 * DRM_VMW_PARAM_SM4_1
* SM4_1 support is enabled. * SM4_1 support is enabled.
*
* DRM_VMW_PARAM_SM5
* SM5 support is enabled.
*/ */
#define DRM_VMW_PARAM_NUM_STREAMS 0 #define DRM_VMW_PARAM_NUM_STREAMS 0
...@@ -103,6 +106,7 @@ extern "C" { ...@@ -103,6 +106,7 @@ extern "C" {
#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 #define DRM_VMW_PARAM_SM4_1 14
#define DRM_VMW_PARAM_SM5 15
/** /**
* enum drm_vmw_handle_type - handle type for ref ioctls * enum drm_vmw_handle_type - handle type for ref ioctls
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment