summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2013-01-07nouveau: hack reverse optimus uprev-optimusDave Airlie2-5/+104
2013-01-07bump to 1.0.6Dave Airlie1-1/+1
Signed-off-by: Dave Airlie <airlied@redhat.com>
2013-01-07nouveau: fix dirty redisplay damage handlingDave Airlie1-1/+2
This processes the damage in the correct order. Signed-off-by: Dave Airlie <airlied@redhat.com>
2013-01-07bump to 1.0.5Ben Skeggs1-1/+1
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2013-01-07nvc0-/exa: fix typo which caused breakage in rendercheck tmcoords testBen Skeggs2-4/+4
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2012-11-27add some missing newlines in error messagesMarcin Slusarz1-2/+2
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2012-11-15kms: Let the server know if we got more than 1 EDID blockEmil Velikov1-1/+4
Verbatim copy from xf86-video-radeon commit 809cacb Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=32341 Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2012-11-09bump version to 1.0.4Ben Skeggs1-1/+1
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2012-11-07nouveau: drop unused nv private members.Dave Airlie1-2/+0
these are no longer needed. Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-11-07nouveau: drop DRI1 device open interface.Dave Airlie1-13/+43
this is a DRI1 left over, the driver is meant to open the device itself now. this old interface did crazy stuff like drmAddMap. Reviewed-by: Ben Skeggs <bskeggs@redhat.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-11-05nouveau: NVPlatformProbe, handle shareable entitiesEmil Velikov1-0/+5
During NVPciProbe, xf86ConfigPciEntity() implicitly calls checks and sets the entity as shared Here we are only allocating the screen, thus need to explicitly call the functions ZaphodHead and Xinerama should finally work Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=56347 Reported-By: Vladimir Chebotarev <exc@rbcmail.ru> Reported-By: Damian Nowak <nowaker@geozone.pl> Tested-By: Damian Nowak <nowaker@geozone.pl> Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2012-11-05nouveau: Factor out common code to NVHasKMS()Emil Velikov1-16/+29
As the name suggests checks if it has kernel mode setting, prints out the interface version and checkes if the chipset is supported Function is used in NVPciProbe and NVPlatformProbe Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2012-11-05nouveau: introduce NVInitScrn()Emil Velikov1-44/+47
Common/helper function for NV{Pci,Platform}Probe() This introduces some the following functions to the NVPlatformProbe codepath * xf86SetEntitySharable() * xf86SetEntityInstanceForScreen() Necessary for dualhead, xinerama and/or zaphodhead v2: Rename nouveau_init_scrn() to NVInitScrn() Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2012-11-05nouveau: Remove unneeded xf86GetEntityInfo()Emil Velikov1-5/+2
Retrieving the whole entity information is not needed as we only use the index - stored already in entity_num Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2012-11-02nouveau: fix regression in virtualbox drawing hopefully.Dave Airlie1-3/+2
Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-10-24bump version to 1.0.3Maarten Lankhorst1-1/+1
2012-10-23exa: remove exaMarkSync from download/upload screenMaarten Lankhorst1-6/+0
They're noops on nouveau since sync markers are unused and download/upload are always synchronous anyway from exa's POV. Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
2012-10-23exa: fix comparison in download_from_screenMaarten Lankhorst1-1/+1
Presumably a copy/paste error from upload_to_screen. Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
2012-10-23exa: fix up download_from/upload_to screenMaarten Lankhorst1-0/+11
Add a missing return TRUE to download_from_screen. Add a missing exaMarkSync to memcpy in upload_to_screen. Add a really loud warning to both if memcpy to/from tiled is done. Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
2012-10-23remove unused members from nv_type.hMaarten Lankhorst1-2/+0
2012-10-22nvc0/exa: make solid fill actually workMaarten Lankhorst1-14/+20
Some investigation showed that the code for accelerating solid fill didn't actually work because NVC0EXACheckTexture would fail. Making the check the same as in NV50EXACheckTexture fixes this, and seems to get acceleration for solid fills working right. Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
2012-10-20dri2: Fix potential race and crash for swap at next vblank.Mario Kleiner1-13/+38
This fixes a potential race + crash that wasn't properly handled by commit 248de8cdbd6d0bc062633b49896fa4791148cd3b and happened at least on one users machine. That commit wrongly assumed no special action would be needed for swaps at next vblank while triple-buffering is enabled on XOrg server 1.12 or later. Closer inspection of the x-server main dispatch loop shows it is possible that the client manages to get the server to dispatch a new DRI2GetBuffersWithFormat() call before the server calls the vblank event handler and executes the nouveau_dri2_finish_swap() routine. Such a race would cause a crash, as described in above commit. This commit handles the "swap at next vblank" case by calling nouveau_dri2_finish_swap() immediately without the roundtrip (queue vblank_event -> kernel -> deliver event -> x-server processes event -> nouveau vblank event handler), before control gets returned to the client. This avoids the race while retaining triple-buffering. As a bonus, time-critical swaps at next vblank get processed without roundtrip delay, increasing the chance of not skipping a frame due to vblank miss while sync to vblank is on. Thanks to Anssi for reporting this problem on the nouveau mailing list at 12th July 2012 and for testing this patch. Reported-by: Anssi Hannula <anssi.hannula@iki.fi> Tested-by: Anssi Hannula <anssi.hannula@iki.fi> Signed-off-by: Mario Kleiner <mario.kleiner@tuebingen.mpg.de>
2012-10-18shadowfb: fix segfault due to reading outside of shadow bufferBen Skeggs1-4/+3
Probably caused by the new libdrm port, the new libdrm sets the bo size field to the *allocated* size and not the *requested* size, making the max_height calculation here invalid. Switched to using virtualX/virtualY as the bounds, which should hopefully do the right thing.. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2012-10-16nouveau/dri2: fix pixmap/window offset calcs.Dave Airlie1-3/+3
This should fix prime rendering under kwin, and not break it under the others. Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-09-26exa: use CLAMP_TO_EDGE for RepeatPadSebastian Keller3-9/+9
This fixes border rendering in some gtk3 themes. https://bugs.freedesktop.org/show_bug.cgi?id=55310 v2 (Ben Skeggs): implement same fix for fermi/kepler too Signed-off-by: Sebastian Keller <sebastian-keller@gmx.de> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2012-09-25Remove mibstore.hAdam Jackson2-4/+0
Signed-off-by: Adam Jackson <ajax@redhat.com>
2012-09-12bump version to 1.0.2Maarten Lankhorst1-1/+1
2012-09-03nouveau: enable provider/capabilitiesDave Airlie2-0/+25
this adds the provider object for nouveau and enables the capabilities on it. Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-09-03nouveau/dri2: add support for DRI2 offloadDave Airlie1-36/+111
This adds the nouveau interfaces for DRI2 offload, this allows nouveau to act as an offload slave. Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-08-16nouveau: add pixmap tracking/updating support.Dave Airlie1-0/+42
This should allow nouveau to act as an output master for driving output slaves. Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-08-16nouveau/exa: add support for shared pixmaps.Dave Airlie4-2/+54
This adds the pixmap export/import hooks, along with code for nv50/nvc0 to validate shared buffers in GTT space. Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-08-16nouveau: add platform bus supportDave Airlie2-2/+46
This adds the ability to load nouveau via the new platform apis. Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-08-15Remove vbe and int10 includesAdam Jackson3-4/+0
This driver has never used int10 or vbe, presumably these were just copypasta from nv. Signed-off-by: Adam Jackson <ajax@redhat.com>
2012-08-15Implement ->driverFuncAdam Jackson1-1/+18
Copied from fbdev, makes it so we can run without iopl. Signed-off-by: Adam Jackson <ajax@redhat.com>
2012-08-05nvc0/nve0: support sync-to-vblank if kernel is new enoughBen Skeggs6-7/+62
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2012-07-06nv40/exa: fix shaders on big-endian machinesBen Skeggs2-216/+226
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2012-06-19bump version to 1.0.1Ben Skeggs1-1/+1
2012-06-19exa: fix remaining signed datatype issuesBen Skeggs6-17/+15
Wasn't expecting this situation, apparently it happens.. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2012-06-19exa: fix various issues in transfer bo handlingMaarten Maathuis1-4/+8
Thanks to "Christoph Bumiller <e0425955@student.tuwien.ac.at>" for hinting at the cause of the memory leak. Signed-off-by: Maarten Maathuis <madman2003@gmail.com> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2012-06-18nve0: fix and improve NV12 shaderChristoph Bumiller1-43/+23
Only the 1st set of coordinates is valid. NVC0 was fixed in 9a3e579f637267b32efc46cfce5d1a36a41323b1.
2012-06-18nvc0/accel: oops fix method size in previous patchChristoph Bumiller1-1/+1
2012-06-18nvc0/accel: use correct (signed) vertex data type in PUSH_VTX1/2sChristoph Bumiller1-11/+15
Could have kept s16 but decided against mask and shift.
2012-06-18bump version to 1.0.0Ben Skeggs1-1/+1
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2012-06-18distcheck fixesBen Skeggs1-14/+34
2012-06-18exa: drop massive gart allocation in favour of smaller ones, as neededBen Skeggs4-66/+62
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2012-06-18nv50/exa: somehow fix firefox tabs not being drawn properly since vp xfrmBen Skeggs1-3/+5
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2012-06-13dri2: kill debug spamBen Skeggs1-7/+0
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2012-06-08nv04/exa: Reset destination surface offset in the same call of NV04EXACopyViktor Novotný1-7/+8
Fixes FDO bug #48954. Signed-off-by: Viktor Novotný <noviktor@seznam.cz> Reviewed-by: Marcin Slusarz <marcin.slusarz@gmail.com> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2012-06-05nouveau: i is used inside the functionDave Airlie1-1/+1
fixes build, reported by tallica on irc. Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-06-05nouveau: port to compat server API.Dave Airlie2-37/+84
This ports to the new server API. Signed-off-by: Dave Airlie <airlied@redhat.com>