summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2014-09-03modesetting: Don't pretend to support rotationHEADmasterRob Clark1-13/+0
It only ends in tears Signed-off-by: Rob Clark <robdclark@gmail.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2014-06-26bump to 0.9.0xf86-video-modesetting-0.9.0Maarten Lankhorst1-1/+1
2014-05-21Use own thunk function instead of shadowUpdatePackedWeakAdam Jackson1-1/+7
I plan to remove the Weak functions from a future server. Signed-off-by: Adam Jackson <ajax@redhat.com>
2014-05-02modesetting: fix build regression against older servers.Dave Airlie1-1/+1
Signed-off-by: Dave Airlie <airlied@redhat.com>
2014-05-02modesetting: fix use after free.Dave Airlie1-2/+2
Signed-off-by: Dave Airlie <airlied@redhat.com>
2014-04-28Add support for server managed fdsHans de Goede1-16/+61
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2014-02-28modesetting: fix cursor rendering with hotspots.Dave Airlie1-1/+1
older kernels report EINVAL not ENOSYS, doh. Signed-off-by: Dave Airlie <airlied@redhat.com>
2014-02-25modesetting: Don't (brokenly) double-track software cursorAdam Jackson2-2/+1
Signed-off-by: Adam Jackson <ajax@redhat.com>
2014-02-21modesetting: try and use hotspot cursor supportDave Airlie2-1/+15
Signed-off-by: Dave Airlie <airlied@redhat.com>
2014-02-21modesetting: move closing fd to after we check outputsDave Airlie1-1/+1
On something like cirrus, start X, then attempt to start a second X while the first is running, if fbdev is installed it'll fail hard. Signed-off-by: Dave Airlie <airlied@redhat.com>
2014-02-12modesetting: query cursor size from the kernelAlex Deucher3-6/+36
Use new drm caps. This allows hw cursors to work correctly on gpus with non-64x64 cursors. Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2013-12-03bump to 0.8.1xf86-video-modesetting-0.8.1Maarten Lankhorst1-1/+1
2013-12-03Properly identify DSI outputsThierry Reding1-0/+1
Newer Linux kernels support DSI outputs. To be able to identify them properly, add DSI to the list of output names. Reviewed-by: Aaron Plattner <aplattner@nvidia.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
2013-12-03Staticise and constify output namesThierry Reding1-16/+16
This array isn't used anywhere outside this file, so it can be made static. While at it, make the array const as well. Signed-off-by: Thierry Reding <treding@nvidia.com> Reviewed-by: Aaron Plattner <aplattner@nvidia.com>
2013-11-15Handle new DamageUnregister API which has only one argumentKeith Packard1-0/+4
API change in 1.15 Signed-off-by: Keith Packard <keithp@keithp.com>
2013-11-15Clean up compiler warnings.Keith Packard2-19/+20
Add const to any immutable string pointers. Rename 'range' to 'prop_range' to avoid redefined warning. Eliminate some unused return values. Signed-off-by: Keith Packard <keithp@keithp.com>
2013-07-31modesetting: change output names for secondary GPUsDave Airlie1-0/+4
if we are a secondary GPU modify the output name to avoid clashes. Signed-off-by: Dave Airlie <airlied@redhat.com>
2013-06-12bump to 0.8.0xf86-video-modesetting-0.8.0Maarten Lankhorst1-1/+1
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
2013-06-12modesetting: probe only succeeds if connectors are detectedMaarten Lankhorst1-8/+20
This will prevent modesetting being used for outputless intel or nvidia cards. Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
2013-06-11modesetting: fix adjust frame crashDave Airlie3-12/+5
When SDL called this it was totally broken, actually hook up to the underlying drmmode function. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=64808 Thanks to Peter Wu <lekensteyn@gmail.com> for harassing me. Signed-off-by: Dave Airlie <airlied@redhat.com>
2013-04-03support 32 bpp pixmaps when 24 bpp fb is used.Maarten Lankhorst1-1/+1
Fixes background corruption in ubuntu. Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
2013-03-27bump version to 0.7.0xf86-video-modesetting-0.7.0Maarten Lankhorst1-1/+1
2013-03-26modesetting: return null for get_modes if output could not be retrievedMaarten Lankhorst1-0/+3
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
2013-03-26modesetting: clean up leaksMaarten Lankhorst1-8/+20
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
2013-03-21modesetting: match PCI class 3, any subclassAaron Plattner1-1/+1
If a device is not primary, the PCI device match fails because the xf86-video-modesetting driver looks specifically for a PCI class match of 0x30000 with a mask of 0xffffff. This fails to match, for example, a non-primary Intel VGA device, because it is reported as having a class of 0x38000. Fix that by ignoring the low 16 bits of the class in the pci_id_match table. Signed-off-by: Aaron Plattner <aplattner@nvidia.com> Reviewed on IRC by Adam Jackson <ajax@redhat.com>
2013-03-15autogen.sh: Implement GNOME Build APIColin Walters1-1/+3
http://people.gnome.org/~walters/docs/build-api.txt Signed-off-by: Adam Jackson <ajax@redhat.com>
2013-02-25Add missing GTF modesChris Wilson1-1/+74
A fixed-mode output device like a panel will often only inform of its preferred mode through its EDID. However, the driver will adjust user specified modes for display through use of a panel-fitter allowing greater flexibility in upscaling. This is often used by games to set a low resolution for performance and use the panel fitter to fill the screen. v2: Use the presence of the 'scaling mode' connector property as an indication that a panel fitter is attached to that pipe. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=55564
2013-02-07modesetting: provide dummy hooks for shadowDave Airlie1-0/+13
Since in some wierd cases the server can call these without checking they exist. Signed-off-by: Dave Airlie <airlied@redhat.com>
2013-01-09modesetting: bump to 0.6.0xf86-video-modesetting-0.6.0Dave Airlie1-1/+1
2013-01-09modesetting: fix crashes caused by udev race conditionsDave Airlie1-0/+5
So the kernel removes the device, and the driver processes the first udev event, and gets no output back from the kernel, so it check and don't fall over. This fixes a couple of crashes seen when hotplugging USB devices. Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-11-29Remove call to miInitializeBackingStore()Thierry Reding1-1/+0
Recent versions of the X server no longer provide this function, which has been obsolete for over 2 years now. Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-11-29build: Put m4 macros in m4 subdirectoryThierry Reding3-0/+4
This silences a warning from libtoolize when running the autogen.sh script. Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de> Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-09-17modesetting: remove alloca usage againDave Airlie1-1/+5
this slipped back in. Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-09-14modesetting: add virtual connector supportAlon Levy2-2/+8
[airlied: also make sure we don't crash in future.] Signed-off-by: Alon Levy <alevy@redhat.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-09-13bump version to 0.5.0xf86-video-modesetting-0.5.0Maarten Lankhorst1-1/+1
2012-08-16Implement ->driverFuncAdam Jackson1-1/+18
Copied from fbdev, makes it so we can run without iopl. Signed-off-by: Adam Jackson <ajax@redhat.com>
2012-07-25modesetting: add output slave support.Dave Airlie4-24/+264
This allows the driver to operate as an output slave. It adds scan out pixmap, and the capability checks to make sure they available. Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-07-25modesetting: add platform bus supportDave Airlie1-15/+69
2012-07-25modesetting: fix warning about close being undefined.Dave Airlie1-0/+1
Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-07-25modesetting: drop useless xf86PciInfo includeDave Airlie1-1/+0
Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-06-22modesetting 0.4.0: bump configure.acxf86-video-modesetting-0.4.0Dave Airlie1-1/+1
2012-06-22modesetting: pci probing requires interface version 1.4Dave Airlie1-0/+11
Set the drm interface version to 1.4 so we get the bus id correctly. Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-06-05modesetting: workaround kernel bug reporting 0x0 as valid minsDave Airlie1-0/+4
It reports these but then you can't create a 0 sized bo. Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-06-01modesetting: bump to latest X server compat api.Dave Airlie2-31/+83
Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-05-23modesetting: fix make distcheckDave Airlie1-0/+1
add missing compat header file. Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-05-23modesetting: convert to new scrn conversion APIs.Dave Airlie2-7/+7
Generated with util/modular/x-driver-screen-scrn-conv.sh Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-05-23modesetting: add compat header fileDave Airlie3-0/+43
Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-05-09bump version to 0.3.0xf86-video-modesetting-0.3.0Dave Airlie1-1/+1
2012-05-09configure.ac: remove DRI and RENDERMatt Turner1-6/+0
Driver doesn't support either of these. Signed-off-by: Matt Turner <mattst88@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-05-09modesetting: make sure the pci device corresponds to the drm deviceDave Airlie1-1/+34
If we get asked to pci open a device with a kms path override, make sure they match, otherwise this driver can steal the primary device binding for a usb adaptor. The driver should fallback to the old probe entry point in this case. Signed-off-by: Dave Airlie <airlied@redhat.com>