aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* nouveau: use @PACKAGE_VERSION@ in libdrm_nouveau.pcMaarten Lankhorst2013-05-171-1/+1
| | | | Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
* nouveau: expose channel engine selection on kepler chipsetsBen Skeggs2013-01-164-0/+48
| | | | | | | | v2: Take Maarten Lankhorst's suggestion of nesting the struct to prevent sizeof() issues due to padding on older revisions. Signed-off-by: Ben Skeggs <bskeggs@redhat.com> Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
* libdrm_nouveau.pc: don't include I${includedir}/nouveauMarcin Slusarz2013-01-141-1/+1
| | | | Nouveau headers are installed in I${includedir}/libdrm.
* nouveau: disallow pushbuf BOs in multiple memory typesBen Skeggs2013-01-061-4/+4
| | | | | | | | | | | | | Under certain circumstances it's possible for libdrm to decide to move a GART|VRAM pushbuf to be VRAM-only. This causes the kernel to reject the command submission on GF8 and up, due to a stricter policy where buffers are only allowed to move to memory types that were specified at creation time. The simplest fix for this is to force the creation-time memory type for the lifetime of the push buffer. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* libdrm/nouveau: add prime handle->bo and bo->handle support.Dave Airlie2012-07-182-0/+38
| | | | | | This adds prime support to nouveau libdrm. Signed-off-by: Dave Airlie <airlied@redhat.com>
* nouveau: silence some remaining valgrind warningsMarcin Slusarz2012-06-092-5/+4
| | | | | | | | Valgrind can't understand some of the fields passed to ioctls are overwritten by kernel, so we need to initialize them. Almost all of our ioctl wrappers already do it and the cost of remaining 3 is very small. Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
* nouveau: fix channel closingMarcin Slusarz2012-05-021-5/+12
| | | | | | Restore code lost in libdrm_nouveau rewrite. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* nouveau: expose notifier handle on nvc0 as wellChristoph Bumiller2012-04-232-0/+2
| | | | | Signed-off-by: Christoph Bumiller <e0425955@student.tuwien.ac.at> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* nouveau: remove unnecessary EAGAIN loopsMarcin Slusarz2012-04-232-11/+4
| | | | | | drmCommandWrite / drmCommandWriteRead already loop on EAGAIN. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* nouveau: init nvc0 channel alloc req structure fullyBen Skeggs2012-04-161-1/+1
| | | | | | Kernel rejects ~0 handles, even though they're not used on NVC0. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* nouveau: pull in major libdrm rewriteBen Skeggs2012-04-1328-2737/+1973
| | | | | | | | | Redesigned primarily to allow us to better take advantage of BO's having fixed GPU virtual addresses on GeForce 8 and up, and to reduce the overhead of handling relocations on earlier chipsets. Signed-off-by: Ben Skeggs <bskeggs@redhat.com> Signed-off-by: Christoph Bumiller <e0425955@student.tuwien.ac.at>
* nouveau: Mark nouveau subchannel unbound nouveau_grobj_freeMaarten Lankhorst2011-11-271-1/+2
| | | | | | | | Valgrind throws warns about a user-after-free if you try to bind a new subchannel after the old one in that slot was freed, so remove it from the channel list. Signed-off-by: Maarten Lankhorst <m.b.lankhorst@gmail.com>
* nouveau: free in error path if drmAvailable fails.Dave Airlie2011-10-191-1/+3
| | | | | | This was reported in coverity. Signed-off-by: Dave Airlie <airlied@redhat.com>
* nouveau: assert argument cannot have side effectsMarcin Slusarz2011-09-181-1/+2
| | | | ... because argument is evaluated only if NDEBUG is not defined
* nouveau: fix up reloc_emit() to accept NULL target bufferBen Skeggs2010-12-201-9/+25
| | | | | | | The nvc0 gallium drivers passes NULL here to indicate to the memory manager that a buffer is being used, but without creating an actual reloc. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* nouveau: split pushbuf macros specific to nv04-nv50 out, and add nvc0Ben Skeggs2010-12-205-40/+169
| | | | Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* nouveau: nvc0 drm has no concept of "notifier block"Ben Skeggs2010-12-201-16/+21
| | | | Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* nouveau: Add implicit pushbuf flush before gpuobj destruction.Francisco Jerez2010-11-212-0/+4
| | | | | | | | It makes sure that GPU object destruction is executed in order with respect to the previous FIFO commands. Signed-off-by: Francisco Jerez <currojerez@riseup.net> Acked-by: Ben Skeggs <bskeggs@redhat.com>
* nouveau: Avoid unnecessary call to CPU_FINI.Francisco Jerez2010-10-302-1/+5
| | | | | | | | nouveau_bo_unmap called the CPU_FINI IOCTL even if it was a NOSYNC mapping. It caused no harmful effects (actually CPU_FINI is a no-op on recent enough kernels) besides the precious CPU cycles being wasted. Signed-off-by: Francisco Jerez <currojerez@riseup.net>
* nouveau: Let the user choose the push buffer size.Francisco Jerez2010-10-114-10/+11
| | | | | Signed-off-by: Francisco Jerez <currojerez@riseup.net> Acked-by: Ben Skeggs <bskeggs@redhat.com>
* nouveau: Define buffer object usage flags.Francisco Jerez2010-10-114-1/+18
| | | | | Signed-off-by: Francisco Jerez <currojerez@riseup.net> Acked-by: Ben Skeggs <bskeggs@redhat.com>
* nouveau: fix drm version check some moreBen Skeggs2010-09-201-1/+1
| | | | | | ... and make a mental note to not push commits before having coffee Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* nouveau: fix thinko in drm version checkBen Skeggs2010-09-191-1/+1
| | | | Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* nouveau: accept both 0.0.16 and 1.x.xBen Skeggs2010-08-171-9/+12
| | | | Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
* nouveau: stop shipping nouveau_class.hBen Skeggs2010-04-092-9020/+0
| | | | | | The motivation behind this is that by shipping it here, it's essentially an API which causes issues while bisecting across changes to the header files.
* nouveau: fix annoying compiler warningBen Skeggs2010-03-181-1/+1
|
* nouveau: fix segfault in nouveau_bo_new_tile() failure pathBen Skeggs2010-03-181-1/+1
|
* nouveau: remove unused field from nouveau_boBen Skeggs2010-03-181-1/+0
|
* nouveau: Regenerate nouveau_class.h.Francisco Jerez2010-03-181-106/+128
| | | | Signed-off-by: Francisco Jerez <currojerez@riseup.net>
* Install headers to $(includedir)/libdrmJulien Cristau2010-03-172-2/+2
| | | | | | | | Avoids conflicts with kernel headers. Signed-off-by: Julien Cristau <jcristau@debian.org> Reviewed-by: Rémi Cardona <remi@gentoo.org> Signed-off-by: Eric Anholt <eric@anholt.net>
* libdrm_nouveau requires libdrmJulien Cristau2010-03-171-0/+1
| | | | | | | nouveau_drmif.h includes xf86drm.h. Signed-off-by: Julien Cristau <jcristau@debian.org> Signed-off-by: Eric Anholt <eric@anholt.net>
* nouveau: Fix up the stride of NV20TCL_LIGHT_BACK_*.Francisco Jerez2010-03-131-6/+6
| | | | Signed-off-by: Francisco Jerez <currojerez@riseup.net>
* nouveau: Small lighting related addition to nouveau_class.h.Francisco Jerez2010-03-071-0/+1
| | | | Signed-off-by: Francisco Jerez <currojerez@riseup.net>
* nouveau: Update nouveau_class.h.Francisco Jerez2010-03-061-71/+33
| | | | Signed-off-by: Francisco Jerez <currojerez@riseup.net>
* nouveau: make sure initial kalloc for user bo ends up in the right placeMaarten Maathuis2010-03-021-0/+6
| | | | | | | | - Currently reloc'ing a user bo to gart will first cause an allocation in vram, which is then written to by cpu, then the bo gets moved to gart. Acked-by: Francisco Jerez <currojerez@riseup.net> Signed-off-by: Maarten Maathuis <madman2003@gmail.com>
* nouveau: Update nouveau_class.h.Francisco Jerez2010-02-251-43/+36
| | | | Signed-off-by: Francisco Jerez <currojerez@riseup.net>
* nv30: update for 8 texture unitsPatrice Mandin2010-02-201-9/+9
|
* nv30: update for front/back stencil inversionPatrice Mandin2010-02-201-48/+48
| | | | Signed-off-by: Patrice Mandin <patmandin@gmail.com>
* nouveau: interface changes for 0.0.16 DRMLuca Barbieri2010-02-1510-350/+344
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit encompasses the changes necessary to run on top of the 0.0.16 nouveau interface, additional APIs to support the new features of the interface, as well as code from Luca Barbieri to improve the pushbuf interface, which just happens to break nouveau's libdrm ABI so was delayed until now. API changes as a result of 0.0.16 DRM interface: 1. No more bo_pin()/bo_unpin(), these were only there for UMS and we no longer support it. 2. Any random nouveau_bo can be submitted to the GPU as a push buffer. 3. Relocations can be applied on any nouveau_bo This patch changes the pushbuffer ABI to: 1. No longer use/expose nouveau_pushbuffer. Everything is directly in nouveau_channel. This saves the extra "pushbuf" pointer dereference. 2. Use cur/end pointers instead of tracking the remaining size. Pushing data now only needs to alter cur and not both cur and remaining. The goal is to make the *_RING macros faster and make the interface simpler and cleaner in the process. The *_RING APIs are unchanged, but those are inlined and the ABI is changed. Also, anything accessing pushbuf->remaining instead of using AVAIL_RING will need to be fixed.
* nouveau: Regenerate nouveau_class.h.Francisco Jerez2010-01-311-491/+541
| | | | Signed-off-by: Francisco Jerez <currojerez@riseup.net>
* nouveau: add nouveau_resource_destroyMarcin Slusarz2010-01-312-0/+12
| | | | Signed-off-by: Francisco Jerez <currojerez@riseup.net>
* nouveau: fail channel creation if pushbuf init failsBen Skeggs2010-01-201-1/+5
|
* nouveau: disable flush_notify on channel_freeMarcin Slusarz2010-01-151-0/+1
| | | | | | We don't want do call flush_notify when we will FIRE the RING a couple of lines later, because grobj bound to this channel might be already freed.
* nouveau: fix memory leak in nouveau_channel_freeMarcin Slusarz2010-01-151-0/+4
|
* nouveau: Update nouveau_class.h.Francisco Jerez2010-01-071-31/+22
| | | | Signed-off-by: Francisco Jerez <currojerez@riseup.net>
* nouveau: add BEGIN_RING_NIMarcin Slusarz2009-12-301-0/+8
|
* nouveau: Unreference pushbuf objects on channel destruction.Younes Manton2009-12-283-3/+16
| | | | | | - unreference pushbuf objects on channel destruction Based on Krzysztof Smiechowicz's patch.
* nouveau: Update some object definitions from renouveau.xml.Francisco Jerez2009-12-281-1666/+1699
| | | | Signed-off-by: Francisco Jerez <currojerez@riseup.net>
* nouveau: Update nouveau_class.h with new renouveau.xml definitions.Marcin Kościelnicki2009-12-281-316/+768
| | | | Signed-off-by: Francisco Jerez <currojerez@riseup.net>
* nouveau: remove delayed kernel bo creationBen Skeggs2009-12-161-24/+17
| | | | Signed-off-by: Ben Skeggs <bskeggs@redhat.com>