Skip to content

Commit f0fce23

Browse files
deepak-rawatRoland Scheidegger
authored andcommitted
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: Deepak Rawat <[email protected]> Reviewed-by: Thomas Hellström (VMware) <[email protected]> Reviewed-by: Roland Scheidegger <[email protected]> Signed-off-by: Roland Scheidegger <[email protected]>
1 parent 2a50f06 commit f0fce23

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,9 @@ int vmw_getparam_ioctl(struct drm_device *dev, void *data,
119119
case DRM_VMW_PARAM_SM4_1:
120120
param->value = has_sm4_1_context(dev_priv);
121121
break;
122+
case DRM_VMW_PARAM_SM5:
123+
param->value = has_sm5_context(dev_priv);
124+
break;
122125
default:
123126
return -EINVAL;
124127
}

include/uapi/drm/vmwgfx_drm.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ extern "C" {
8686
*
8787
* DRM_VMW_PARAM_SM4_1
8888
* SM4_1 support is enabled.
89+
*
90+
* DRM_VMW_PARAM_SM5
91+
* SM5 support is enabled.
8992
*/
9093

9194
#define DRM_VMW_PARAM_NUM_STREAMS 0
@@ -103,6 +106,7 @@ extern "C" {
103106
#define DRM_VMW_PARAM_DX 12
104107
#define DRM_VMW_PARAM_HW_CAPS2 13
105108
#define DRM_VMW_PARAM_SM4_1 14
109+
#define DRM_VMW_PARAM_SM5 15
106110

107111
/**
108112
* enum drm_vmw_handle_type - handle type for ref ioctls

0 commit comments

Comments
 (0)