summaryrefslogtreecommitdiff
path: root/src/legacy
AgeCommit message (Collapse)Author
2012-07-14Drop some unused includesChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-07-12i810: Remove vestigial reference to xaa.hChris Wilson
i810_hwmc.c can pull it in via i810.h like everybody else. As for xaalocal.h, I have no idea what that is... Both appear to be cut'n'paste includes. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-07-12i810: Tidy configure detection for XAA/DGAChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-07-10i810: Make DGA optionalDaniel Stone
Don't build DGA when it's not available, or when we don't want it. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-07-10i810: Make XAA optionalDaniel Stone
Don't build XAA when it's not available, or when we don't want it. Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-06-19Initialise adaptors to 0 in case xf86XVListGenericAdaptors does notChris Wilson
Reported-by: Zdenek Kabelac <zkabelac@redhat.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-06-13legacy/i810: Fix declaration to match definitionZdenek Kabelac
Signed-off-by: Zdenek Kabelac <zkabelac@redhat.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-06-06legacy/i810/dri: Check for malloc failure for BusIdStringChris Wilson
Reported-by: Zdenek Kabelac <zkabelac@redhat.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-06-05intel: port legacy and uxa to new API.Dave Airlie
This ports the legacy and uxa driver to the new server API. Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-06-04legacy/i810: Silence a compiler warning for missing 'const'Chris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-06-04legacy/i810: Be paranoid and guard against xf86GetPciInfoForEntityChris Wilson
Reported-by: Zdenek Kabelac <zkabelac@redhat.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-06-04legacy/i810: Remove unused variableChris Wilson
In order to reduce the volumes of output from static analysers. Reported-by: Zdenek Kabelac <zkabelac@redhat.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-06-04legacy/i810: Reorder DRI teardown code to avoid potential NULL derefsChris Wilson
Reported-by: Zdenek Kabelac <zkabelac@redhat.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-06-04legacy/i810: Free offscreen image info struct on failureChris Wilson
Impossible with the current code, the server aborts on failure. However, this looks to be the simple answer to keep static analysers quiet. Reported-by: Zdenek Kabelac <zkabelac@redhat.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-06-02legacy/i810/video: Release memory after creating adaptorsChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-06-02legacy/i810/dri: Propagate failure from allocating texture memoryChris Wilson
Reported-by: Zdenek Kabelac <zkabelac@redhat.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-06-02legacy/i810: Fix memset(sizeof(*ptr)) rather than memset(sizeof(ptr))Chris Wilson
Clear the entire structure and not the first 4 bytes... Reported-by: Zdenek Kabelac <zkabelac@redhat.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-05-24Allow runtime switching of AccelMethod between uxa/sna and even glamorChris Wilson
Section "Device" Option "AccelMethod" "uxa/glamor/sna" EndSection The appropriate backend must also be enabled at compile time for the runtime option to be available (i.e. --enable-uxa (default) --enable-sna --enable-glamor) Demanded-by: Adam Jackson <ajax@redhat.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=50290 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-05-23intel: convert to new screen conversion APIsDave Airlie
The compat header takes care of the old server vs new server. this commit was autogenerated from util/modular/x-driver-screen-scrn-conv.sh Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-05-23intel: add compat header file for conversion fnsDave Airlie
Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-05-23legacy/i810: rename pScreen->screenDave Airlie
For consistency before moving to new APIs. This just changes the files where the API changes will touch. Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-05-23legacy/i810: rename pScrn->scrnDave Airlie
This is need to make the compat api stuff easier to implement. Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-04-29legacy/i810: hwmc additionally depends upon building DRI2.19.0Chris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-02-24legacy: Rename XF86DRI to HAVE_DRI1 to avoid conflicts with xorg-server.hChris Wilson
We use the XF86DRI as a user configurable option to control whether to build DRI support for i810, but it is also used internally within xorg and there exists a public define in xorg-server.h which overrides our configure option. So rename our define to HAVE_DRI1 to avoid the conflict. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=46590 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-01-08Removed deprecated xf86PciInfo.h includesChris Wilson
The driver should and does provide its own PCI-IDs. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-10-30i810: kill mmio vga access helpersDaniel Vetter
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-10-30i810: use vgahw functions instead of roll-your-ownDaniel Vetter
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-10-30i810: rip out PIO access functionsDaniel Vetter
All the io done at init time is already converted to libpciaccess Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-10-30i810: kill dead i830 definesDaniel Vetter
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-10-29Use malloc/calloc/realloc/free directlyJeremy Huddleston
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-06-22Don't include xf86Priv.hAdam Jackson
I'd like it to not be in the SDK anymore, and we're not using anything from it. Signed-off-by: Adam Jackson <ajax@redhat.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-02-17Fix IGD and IGDNG constants to be comprehensibleAdam Jackson
Since, with GPU-on-package, it's hard to talk about a model number for a specific chipset like 855GM, just use the platform names. Signed-off-by: Adam Jackson <ajax@redhat.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-10-02legacy/i810: Remove pVisualConfigsChris Wilson
Completely unused pulling in an undesired glxproto dependency. Reported-by: Cyril Brulebois <kibi@debian.org> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=30554 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-08-22Replace ROUND_* macros with ALIGN.Matt Turner
Signed-off-by: Matt Turner <mattst88@gmail.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-08-22Use ALIGN macro instead of open coding it.Matt Turner
Signed-off-by: Matt Turner <mattst88@gmail.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-07-28legacy: Remove long gone use of GlxSetVisualConfigs()Kristian Høgsberg
This removes the last dependeny on anything GL/GLX in the driver.
2010-07-24simplify Makefile as per-target compilation flags are not neededGaetan Nadon
Per-target compilation flags (libIntelXvMC_la_CFLAGS) are required when multiple targets which require different compiler flags, are build in the same makefile. Automake issues a command with -c and -o flags which not all compilers support. The object fles are prefixed with libIntelXvMC_la. The macro AM_PROG_CC_C_O must then be used to provide this feature on compilers that do not have it. If not, a warning is issued at make time. This macros checks for compiler support and if missing, uses a "compile" script it generates in the package root directory. Currently the driver uses per-target flags but the macro is missing. Rather than adding the macro, this patch stops using per-target flags by using the AM_CFLAGS variable for all targets in the makefile, as there is only one. Acked-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-06-28Repair the damage to 'make distcheck' after splitting out i810Chris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-06-25i810: Move into a legacy directory.Chris Wilson
The driver is still built but is no longer under active development so move it and supporting files to a new directory. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>