]> git.baikalelectronics.ru Git - kernel.git/commit
vmwgfx: Reinstate the update_layout ioctl
authorThomas Hellstrom <thellstrom@vmware.com>
Tue, 25 Oct 2011 21:35:53 +0000 (23:35 +0200)
committerDave Airlie <airlied@redhat.com>
Wed, 2 Nov 2011 08:30:31 +0000 (08:30 +0000)
commit8793ff5521e3831cbba62dd56cd2641eb2d39b2b
tree4ec5275d9650283de7b3be6d2e5eb0cd2e63cde6
parent0f6ae6a55d977d2423dc385dd03952798aa03da3
vmwgfx: Reinstate the update_layout ioctl

We need to redefine a connector as "connected" if it matches a window
in the host preferred GUI layout.
Otherwise "smart" window managers would turn on Xorg outputs that we don't
want to be on.

This reinstates the update_layout and adds the following information to
the modesetting system.
a) Connection status <-> Equivalent to real hardware connection status
b) Preferred mode <-> Equivalent to real hardware reading EDID
c) Host window position <-> Equivalent to a real hardware scanout address
dynamic register.

It should be noted that there is no assumption here about what should be
displayed and where. Only how to access the host windows.

This also bumps minor to signal availability of the new IOCTL.

Based on code originally written by Jakob Bornecrantz

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
drivers/gpu/drm/vmwgfx/vmwgfx_drv.h
drivers/gpu/drm/vmwgfx/vmwgfx_kms.c
drivers/gpu/drm/vmwgfx/vmwgfx_kms.h
include/drm/vmwgfx_drm.h