From: Thomas Hellstrom Date: Fri, 31 Jan 2014 09:21:10 +0000 (+0100) Subject: drm/vmwgfx: Detect old user-space drivers and set up legacy emulation v2 X-Git-Tag: v3.14-rc2~19^2~1^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a6fc955ff9fc60dcffc80003410a85d874e4f1e3;p=pandora-kernel.git drm/vmwgfx: Detect old user-space drivers and set up legacy emulation v2 GB aware mesa userspace drivers are detected by the fact that they are calling the vmw getparam ioctl querying DRM_VMW_PARAM_HW_CAPS to detect whether the device is Guest-backed object capable. For other drivers, lie about hardware version and send the 3D capabilities in a format they expect. v2: Use DRM_VMW_PARAM_MAX_MOB_MEMORY to detect gb awareness, Make sure we don't ovwerwrite bounce buffer or write past user-space buffer indicated size. Signed-off-by: Thomas Hellstrom Reviewed-by: Jakob Bornecrantz --- Reading git-diff-tree failed