summaryrefslogtreecommitdiff
path: root/src/legacy
AgeCommit message (Collapse)Author
2020-03-10i810: Avoid duplicate definition of I810PatternROPHanno Böck
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2019-09-19xvmc: Eliminate strict aliasing violationsVille Syrjälä
Just access both halves of the motion vector thing directly instead of doung the cast to uint and deref. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2018-02-06meson: Add meson build systemVille Syrjälä
Allow building the driver with meson. Could probably use plenty of cleanups, but at least it gives me a working driver. And I think I managed to make it build everything that autotools builds. Quite a few compiler warnings were suppressed as well. Might want to look at those at some point. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2017-07-18legacy/i810: remove unused numVisualConfigsEmil Velikov
Cc: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2016-07-21legacy/i810: Fix compilation with Video ABI 23 changesChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-06-09Fix typos found with codespell v1.7Sedat Dilek
To get codespell v1.7 check [2]. [1] https://github.com/lucasdemarchi/codespell [2] https://github.com/lucasdemarchi/codespell/releases Signed-off-by: Sedat Dilek <sedat.dilek@gmail.com>
2015-01-26legacy/i810: Expand mask to match unsigned longChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-10-08intel: Store pointer to struct intel_deviceChris Wilson
Beware the barbarians at the gate, who invade and steal your ScrnInfoPtr and its Entity from underneath you. In some configurations, we lose access to the struct intel_device stored on the Entity after initialisation, causing havoc. Workaround this by storing the intel_device that we open in our driverPrivate. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-07-31i810: Fix startup after marking GPU screens in the moduleChris Wilson
Fixes regression from commit d6830190bc9956f485db6c3420f7a4a79793a693 Author: Chris Wilson <chris@chris-wilson.co.uk> Date: Wed Jul 23 10:53:40 2014 +0100 sna: Disable all outputs when initializing as a slaved output provider Reported-by: Tobias Powalowski Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-03configure: Remove xf86driproto from REQUIRED_MODULESChris Wilson
We only depend upon the original DRI1 infrastructure when building i810 with DRI support. So unless that is true, do not throw an error if the legacy protocol is absent. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
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>