modesetting: match PCI class 3, any subclass

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>
modesetting: clean up leaks

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
modesetting: return null for get_modes if output could not be retrieved

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
bump version to 0.7.0
support 32 bpp pixmaps when 24 bpp fb is used.

Fixes background corruption in ubuntu.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
modesetting: fix adjust frame crash

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>
modesetting: probe only succeeds if connectors are detected

This will prevent modesetting being used for outputless intel or nvidia cards.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
bump to 0.8.0

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
modesetting: change output names for secondary GPUs

if we are a secondary GPU modify the output name to avoid clashes.

Signed-off-by: Dave Airlie <airlied@redhat.com>
Clean up compiler warnings.

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>
Handle new DamageUnregister API which has only one argument

API change in 1.15

Signed-off-by: Keith Packard <keithp@keithp.com>
Staticise and constify output names

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>
Properly identify DSI outputs

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>
bump to 0.8.1
Rename driver

Rename everything modesetting/ms/etc. to gma500/gma

Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Add UXA lib

Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Add GMA UXA skeleton

Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Add temporary gma500 ioctl interface

This will be moved into libdrm eventually.

Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Replace dumb bo interface with libgma ones

Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Use 32 bits for 24 bit depth gma_bo and prevent multiple mappings

Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>