summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorCharmaine Lee <[email protected]>2017-11-06 14:13:47 -0800
committerBrian Paul <[email protected]>2018-09-10 13:07:30 -0600
commit45517f492b461df1e536c254c5f7e0fbb9295c53 (patch)
treeff528a3787781c325c3a09256cee857a3b0c61ff /src
parent159e706c4c4090b36ea118b3fea5c576ee3a7350 (diff)
winsys/drm: check for CAPS2/SM41 support if VGPU10 is enabled
No need to check for HW_CAPS2 or SM4_1 support if VGPU10 is not enabled or is explicitly disabled via the environment variable SVGA_VGPU10. Reviewed-by: Deepak Rawat <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/winsys/svga/drm/vmw_screen_ioctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/winsys/svga/drm/vmw_screen_ioctl.c b/src/gallium/winsys/svga/drm/vmw_screen_ioctl.c
index 94414e75342..739e4ea131f 100644
--- a/src/gallium/winsys/svga/drm/vmw_screen_ioctl.c
+++ b/src/gallium/winsys/svga/drm/vmw_screen_ioctl.c
@@ -1070,7 +1070,7 @@ vmw_ioctl_init(struct vmw_winsys_screen *vws)
}
}
- if (vws->ioctl.have_drm_2_15) {
+ if (vws->ioctl.have_drm_2_15 && vws->base.have_vgpu10) {
memset(&gp_arg, 0, sizeof(gp_arg));
gp_arg.param = DRM_VMW_PARAM_HW_CAPS2;
ret = drmCommandWriteRead(vws->ioctl.drm_fd, DRM_VMW_GET_PARAM,