Skip to content

Commit abaad3d

Browse files
committed
drm/vmwgfx: Allow checking for gl43 contexts
To make sure we're running on top of hardware that can support GL4.3 we need to add a way of querying for those capabilities. DRM_VMW_PARAM_GL43 allows userspace to check for presence of GL4.3 capable contexts. Signed-off-by: Zack Rusin <zackr@vmware.com> Reviewed-by: Charmaine Lee <charmainel@vmware.com> Link: https://patchwork.freedesktop.org/patch/msgid/20211206172620.3139754-10-zack@kde.org
1 parent 4fb9326 commit abaad3d

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

‎drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,9 @@ int vmw_getparam_ioctl(struct drm_device *dev, void *data,
105105
case DRM_VMW_PARAM_SM5:
106106
param->value = has_sm5_context(dev_priv);
107107
break;
108+
case DRM_VMW_PARAM_GL43:
109+
param->value = has_gl43_context(dev_priv);
110+
break;
108111
default:
109112
return -EINVAL;
110113
}

‎include/uapi/drm/vmwgfx_drm.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ extern "C" {
110110
#define DRM_VMW_PARAM_HW_CAPS2 13
111111
#define DRM_VMW_PARAM_SM4_1 14
112112
#define DRM_VMW_PARAM_SM5 15
113+
#define DRM_VMW_PARAM_GL43 16
113114

114115
/**
115116
* enum drm_vmw_handle_type - handle type for ref ioctls

0 commit comments

Comments
 (0)