summaryrefslogtreecommitdiff
path: root/src/legacy
AgeCommit message (Collapse)Author
2013-11-25uxa,legacy: use unsigned for comparition of unsignedZdenek Kabelac
Signed-off-by: Zdenek Kabelac <zkabelac@redhat.com>
2013-11-25Fix indentation for incorrectly shifted statementsZdenek Kabelac
Signed-off-by: Zdenek Kabelac <zkabelac@redhat.com>
2013-11-25Cast to use unsigned mathZdenek Kabelac
Signed-off-by: Zdenek Kabelac <zkabelac@redhat.com>
2013-11-25Makefile convert @var@ to $(var)Zdenek Kabelac
Avoid using @var@ since this could not be easily overwritten through 'make var=xxx' option which is normally available. For Makefile.am users should avoid using @var@. Signed-off-by: Zdenek Kabelac <zkabelac@redhat.com>
2013-10-03intel: Remove dependence upon having PciInfoChris Wilson
After some probing mechanisms, we may end up with a valid device without knowing its PCI address a priori. Having a valid device, we can just query it for the correct device id, and can safely abort any path that requires PCI information that we don't have. (Those paths are not valid under such hosting anyway - if it may be required, we could reconstruct the address.) Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-09-18intel: Compile fixes for base install of SLED11.sp3Chris Wilson
Highlights of that distribution include xorg-xserver-1.6.5, kernel 3.0.76 and gcc-4.3. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-09-04configure: Check for required UMS headers before enablingChris Wilson
Prevents the build failing with i810 if we can not find vgaHW.h Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-07-28configure: Print a summary of compilation optionsChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-07-28intel: Remove some unused macrosChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-09-27Remove the last couple of references to mibstoreChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-08-16i810: Query PortPriv for the surface propertiesChris Wilson
Avoid the NULL deferences. Reported-by: Zdenek Kabelac <zkabelac@redhat.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-08-03Pass the chipset info through driverPrivate rather than a global pointerChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-07-23intel: Refactor the common chipset detection/overrideChris Wilson
Reduce the duplicate messages for which type of chip we by amalgamating the common code. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-07-19i810: Correct the double negative and enable XAA when availableChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-07-19i810: Handle initialisation without the XAA module present at runtimeChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-07-18i810: DRI is not dependent upon XAAChris Wilson
The blit routines is uses are independent of the XAA driver interface and can be used separately. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-07-17i810: Replace XAAGet.*ROP() with local tablesChris Wilson
The XAAGetPatternROP() and XAAGetCopyROP() functions were removed along with the rest of XAA so we need to implement those tables locally. Reported-by: Knut Petersen <Knut_Petersen@t-online.de> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-07-17i810: Split xaa routines from common acceleration methodsChris Wilson
Some of the routines in i810_accel.c are specific to XAA whilst others are used elsewhere, for example in i810_dri.c. Therefore we have to be selective over which ones we compile out without xaa. Reported-by: Knut Petersen <Knut_Petersen@t-online.de> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
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>