summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* dri3: initial supportdri3Ben Skeggs2013-11-224-2/+119
| | | | Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* sync: initial support for misyncshmBen Skeggs2013-11-227-3/+167
| | | | Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* dri: open drm render-node if possibleBen Skeggs2013-11-221-1/+10
| | | | Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* kms: implement a more generic drm event handlerBen Skeggs2013-11-223-37/+122
| | | | Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* dri2: store vblank data on stack unless we need to use an eventBen Skeggs2013-11-221-50/+42
| | | | Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* dri2: pull in flip handling bits from drmmode_display locallyBen Skeggs2013-11-223-263/+261
| | | | | | To avoid busting DRI2 while trying some different things for DRI3. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* kms: add some useful fetch methodsBen Skeggs2013-11-212-0/+18
| | | | Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* bump to 1.0.10 for releasexf86-video-nouveau-1.0.10Ben Skeggs2013-11-071-1/+1
| | | | Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* recognise GK208 as a Kepler boardBen Skeggs2013-11-071-2/+4
| | | | Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* nouveau: fix build against older servers.Dave Airlie2013-07-311-0/+2
| | | | | | Older servers had no GPU support. Signed-off-by: Dave Airlie <airlied@redhat.com>
* nouveau: add gpu identifier to connector names for secondary gpusDave Airlie2013-07-311-0/+4
| | | | | | this avoids clashes with identifiers from other GPUs. Signed-off-by: Dave Airlie <airlied@redhat.com>
* nouveau: fix build on ppc by wrapping immintrin include.Dave Airlie2013-07-311-0/+2
| | | | Signed-off-by: Dave Airlie <airlied@redhat.com>
* bump to 1.0.9 for releasexf86-video-nouveau-1.0.9Dave Airlie2013-07-301-1/+1
| | | | Signed-off-by: Dave Airlie <airlied@redhat.com>
* nouveau: fix crash when xinerama is enabled.Dave Airlie2013-07-301-1/+1
| | | | Signed-off-by: Dave Airlie <airlied@redhat.com>
* fix make distcheck.Dave Airlie2013-07-301-0/+16
| | | | | | add all the nvf0 stuff. Signed-off-by: Dave Airlie <airlied@redhat.com>
* drmmode: add support for multi-screen reverse optimusDave Airlie2013-07-301-9/+43
| | | | | | | | | Initial reverse optimus didn't consider multiple screens, so this overhauls the code to use the new X server interface, and allows for multiple outputs on the nvidia to be used with the intel doing the rendering. Signed-off-by: Dave Airlie <airlied@redhat.com>
* nouveau: use uppercase for chipset nameIlia Mirkin2013-07-301-1/+1
| | | | | | | | Right now the log will output e.g. NVaa instead of NVAA, which is how we usually talk about it. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* xv: speed up YV12 -> NV12 conversion using SSE2 if availableIlia Mirkin2013-07-301-7/+26
| | | | | | | | memcpy() goes from taking 45% to 66% of total function time, which translates to a 30% decrease in NVPutImage runtime. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* xv: fix last pixel for big-endian machines in YV12 -> NV12 conversionIlia Mirkin2013-07-301-1/+4
| | | | | Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* nvf0: implement EXA and XVideo accelerationBen Skeggs2013-07-0518-5/+696
| | | | Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* Link against libdrmSven Joachim2013-06-172-2/+3
| | | | | | | | | The DDX uses symbols from libdrm but currently does not link against it, but rather relies on indirect linkage from libdrm_nouveau. This could lead to insufficient dependencies in distribution packages, seen in http://bugs.debian.org/633786. Signed-off-by: Sven Joachim <svenjoac@gmx.de>
* fixup the dri2 checkMaarten Lankhorst2013-06-121-1/+1
| | | | Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
* bump to 1.0.8xf86-video-nouveau-1.0.8Maarten Lankhorst2013-06-121-1/+1
|
* configure: printout the configuration infoEmil Velikov2013-06-121-0/+18
| | | | | | Let the bikeshedding begin Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
* nouveau: mandate dri2 buildEmil Velikov2013-06-122-14/+3
| | | | | | Building nouveau without dri2 is just silly Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
* dri1: purge the final referencesEmil Velikov2013-06-122-7/+1
| | | | Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
* nouveau: Do not load dri {sub,}moduleEmil Velikov2013-06-122-37/+1
| | | | | | | | | Nouveau does not use dri1, thus loading XFree86-DRI is not needed On the other hand, we do use dri2 As a side effect, purge the 'set-but-unused' variable pLibDRMVersion Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
* nouveau: stop using dri1 function DRICreatePCIBusIDEmil Velikov2013-06-121-5/+7
| | | | | | Step 1 to completely rip out dri1 out of nouveau Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
* update makefiles for make distcheckMaarten Lankhorst2013-06-124-6/+44
|
* configure: require xorg-macros 1.8Emil Velikov2013-06-121-0/+12
| | | | | | | Explicitly check for xorg-macros 1.8, as a subtle hint to update your build deps if building your own ddx Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
* fix a xfree from previous patchMaarten Lankhorst2013-06-101-1/+1
| | | | Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
* nouveau: enable support for normal optimus configurationMaarten Lankhorst2013-06-103-22/+74
| | | | | | | | | | nvd7 has no display engine, only enable sink output capability if there is a crtc. drmmode doesn't work without crtc's, so prevent crashes by skipping the drmmode code in that case. Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
* nve0: envyas isn't overly clever.. avoid short-form instructionsBen Skeggs2013-05-1516-28/+42
| | | | Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* nvc0-nve0: decompile shaders into their source, add basic build systemBen Skeggs2013-05-1533-486/+764
| | | | | | Far, far easier to maintain this way... Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* nvc0-nve0: split shader code from their headersBen Skeggs2013-05-1536-888/+960
| | | | Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* nouveau: clean up nv entity index declarations.Dave Airlie2013-05-131-7/+6
| | | | Signed-off-by: Dave Airlie <airlied@redhat.com>
* nouveau: attempt to fix zaphod since dri1 code removalDave Airlie2013-05-132-0/+47
| | | | | | | | | | | j_v on #nouveau bisected b1a630b48210d6a3c44994fce1b73273000ace5c has breaking zaphod, on review it was trying to open the drm fd a second time which was unnecessary. Avoid the problem by storing the nv fd in an entity and have share it between the two scrn info recs. Signed-off-by: Dave Airlie <airlied@redhat.com>
* nouveau: Allow 3D accelerators with output portsMarek Vasut2013-05-071-1/+1
| | | | | | | | | | | | | | This patch let's cards with PCI class 0x30200 (3D controller) be operated by the nouveau driver as well. The nv Quadro NVS 450 is one such card, where the first GPU has PCI class 0x30000 and the other GPU has PCI class 0x30200. By ignoring the 1 << 9 bit in the PCI class mask, displays attached to the other GPU can also be used now. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Dave Airlie <airlied@redhat.com> Cc: Ben Skeggs <skeggsb@gmail.com> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* nouveau_xv: Avoid reading off the end of the source image on NV50+Ilia Mirkin2013-05-071-2/+2
| | | | | | | | | | | | | | The 'w' argument to NVCopyNV12ColorPlanes is used to index into the source image. line_len is rounded up to 8 on NV50+, so if the source image (+ left offset) is not rounded to 8, NVCopyNV12ColorPlanes could read past the end of the array and crash X. This change can cause the last few horizontal pixels of dst to not be initialized, but they should be truncated by the renderer anyways. See https://bugs.freedesktop.org/show_bug.cgi?id=63263 Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* nvf0: recognise as supported chipsetBen Skeggs2013-05-021-0/+2
| | | | Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* nve0: explicitly ask kernel for copy2 objectBen Skeggs2013-04-294-2/+22
| | | | Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* bump to 1.0.7xf86-video-nouveau-1.0.7Maarten Lankhorst2013-03-271-1/+1
| | | | Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
* Clean up some errors on closing.Maarten Lankhorst2013-03-252-3/+20
| | | | | If forced close happens, all ioctl's will fail. Some of the handlers also need to be unregistered before the module is unloaded entirely.
* nouveau: fix build against old servers (part 2)Dave Airlie2013-02-111-2/+8
| | | | | | | Should fix next bit of https://bugs.freedesktop.org/show_bug.cgi?id=60369 Signed-off-by: Dave Airlie <airlied@redhat.com>
* nv30/exa: fix shaders on big-endian machinesMarcin Slusarz2013-02-101-136/+136
| | | | | | | | | Direct port of commit d1bc38b6673c54af61196056c489383fba8dced8 "nv40/exa: fix shaders on big-endian machines" to nv30. Fixes https://bugs.freedesktop.org/show_bug.cgi?id=60050 Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* nouveau: fix build on older X serversDave Airlie2013-02-072-1/+7
| | | | | | | should fix https://bugs.freedesktop.org/show_bug.cgi?id=60369 Reported-by: fabio.ped@libero.it Signed-off-by: Dave Airlie <airlied@redhat.com>
* nouveau: make prime regression fix more robust.Dave Airlie2013-02-061-1/+2
| | | | | | This makes this fix more robust and less crashy. Signed-off-by: Dave Airlie <airlied@redhat.com>
* nouveau: align shared buffers to 256Dave Airlie2013-02-061-1/+1
| | | | | | | | We were getting 0xa5 error code on 2D transfers from tiled VRAM to untiled GART when using USB offload devices, this fixes this by upping the alignment on the 2D engine for shared buffers. Signed-off-by: Dave Airlie <airlied@redhat.com>
* nouveau: fix regression in PRIME since 58284cf32778d54cde139423450bc33360784503Dave Airlie2013-02-061-1/+1
| | | | Signed-off-by: Dave Airlie <airlied@redhat.com>
* nouveau: create shared pixmaps in GARTDave Airlie2013-02-062-1/+9
| | | | | | this creates the shared pixmaps in GART, and makes sure they are untiled. Signed-off-by: Dave Airlie <airlied@redhat.com>