diff options
author | Thomas Hellstrom <thellstrom@vmware.com> | 2014-01-31 10:21:10 +0100 |
---|---|---|
committer | Thomas Hellstrom <thellstrom@vmware.com> | 2014-02-05 08:41:44 +0100 |
commit | a6fc955ff9fc60dcffc80003410a85d874e4f1e3 (patch) | |
tree | 9e3bddfba6274eaeb8f109c422d987d20e4463f0 /drivers/gpu/drm/gma500/psb_lid.c | |
parent | d5bde956630b86462ee22055f5816a04290aed57 (diff) | |
download | talos-obmc-linux-a6fc955ff9fc60dcffc80003410a85d874e4f1e3.tar.gz talos-obmc-linux-a6fc955ff9fc60dcffc80003410a85d874e4f1e3.zip |
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 <thellstrom@vmware.com>
Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
Diffstat (limited to 'drivers/gpu/drm/gma500/psb_lid.c')
0 files changed, 0 insertions, 0 deletions