winsys/drm: check for CAPS2/SM41 support if VGPU10 is enabled
authorCharmaine Lee <charmainel@vmware.com>
Mon, 6 Nov 2017 22:13:47 +0000 (14:13 -0800)
committerBrian Paul <brianp@vmware.com>
Mon, 10 Sep 2018 19:07:30 +0000 (13:07 -0600)
commit45517f492b461df1e536c254c5f7e0fbb9295c53
treeff528a3787781c325c3a09256cee857a3b0c61ff
parent159e706c4c4090b36ea118b3fea5c576ee3a7350
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 <drawat@vmware.com>
src/gallium/winsys/svga/drm/vmw_screen_ioctl.c