Ben Skeggs
81fa7a9f56
nouveau: fix drm version check some more
...
... and make a mental note to not push commits before having coffee
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2010-09-21 13:02:07 +10:00
Ben Skeggs
d1cec6d2a9
nouveau: fix thinko in drm version check
...
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2010-09-20 08:07:28 +10:00
Ben Skeggs
b61e81a191
nouveau: accept both 0.0.16 and 1.x.x
...
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2010-08-18 12:06:48 +10:00
Ben Skeggs
204c76c4d6
nouveau: stop shipping nouveau_class.h
...
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.
2010-04-09 20:38:34 +10:00
Ben Skeggs
c1c8bbf80b
nouveau: fix annoying compiler warning
2010-03-19 10:20:15 +10:00
Ben Skeggs
df32c307e8
nouveau: fix segfault in nouveau_bo_new_tile() failure path
2010-03-19 10:19:12 +10:00
Ben Skeggs
a247fca8ba
nouveau: remove unused field from nouveau_bo
2010-03-19 10:19:11 +10:00
Francisco Jerez
5671282115
nouveau: Regenerate nouveau_class.h.
...
Signed-off-by: Francisco Jerez <currojerez@riseup.net>
2010-03-18 15:04:20 +01:00
Julien Cristau
976e779f9c
Install headers to $(includedir)/libdrm
...
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>
2010-03-17 12:45:46 -07:00
Julien Cristau
e73af7f560
libdrm_nouveau requires libdrm
...
nouveau_drmif.h includes xf86drm.h.
Signed-off-by: Julien Cristau <jcristau@debian.org>
Signed-off-by: Eric Anholt <eric@anholt.net>
2010-03-17 12:45:31 -07:00
Francisco Jerez
df7157fe2e
nouveau: Fix up the stride of NV20TCL_LIGHT_BACK_*.
...
Signed-off-by: Francisco Jerez <currojerez@riseup.net>
2010-03-13 18:57:12 +01:00
Francisco Jerez
04fd3872ee
nouveau: Small lighting related addition to nouveau_class.h.
...
Signed-off-by: Francisco Jerez <currojerez@riseup.net>
2010-03-07 19:58:33 +01:00
Francisco Jerez
581cafbc24
nouveau: Update nouveau_class.h.
...
Signed-off-by: Francisco Jerez <currojerez@riseup.net>
2010-03-06 21:08:06 +01:00
Maarten Maathuis
cdc788d645
nouveau: make sure initial kalloc for user bo ends up in the right place
...
- 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>
2010-03-02 23:25:50 +01:00
Francisco Jerez
c27ce8674d
nouveau: Update nouveau_class.h.
...
Signed-off-by: Francisco Jerez <currojerez@riseup.net>
2010-02-25 18:32:06 +01:00
Patrice Mandin
3130f94c6e
nv30: update for 8 texture units
2010-02-20 11:57:29 +01:00
Patrice Mandin
bdcd12980b
nv30: update for front/back stencil inversion
...
Signed-off-by: Patrice Mandin <patmandin@gmail.com>
2010-02-20 11:50:37 +01:00
Luca Barbieri
b496c63143
nouveau: interface changes for 0.0.16 DRM
...
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.
2010-02-16 10:16:37 +10:00
Francisco Jerez
53e261c01d
nouveau: Regenerate nouveau_class.h.
...
Signed-off-by: Francisco Jerez <currojerez@riseup.net>
2010-02-01 01:48:13 +01:00
Marcin Slusarz
55ba98fadf
nouveau: add nouveau_resource_destroy
...
Signed-off-by: Francisco Jerez <currojerez@riseup.net>
2010-01-31 16:09:03 +01:00
Ben Skeggs
7b32812298
nouveau: fail channel creation if pushbuf init fails
2010-01-21 15:18:15 +10:00
Marcin Slusarz
3d3d87f3a7
nouveau: disable flush_notify on channel_free
...
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.
2010-01-15 23:02:48 +01:00
Marcin Slusarz
a03dcc2104
nouveau: fix memory leak in nouveau_channel_free
2010-01-15 23:02:48 +01:00
Francisco Jerez
5963c023b8
nouveau: Update nouveau_class.h.
...
Signed-off-by: Francisco Jerez <currojerez@riseup.net>
2010-01-08 04:37:39 +01:00
Marcin Slusarz
c5c503b519
nouveau: add BEGIN_RING_NI
2009-12-30 22:11:55 +01:00
Younes Manton
cd2e4ba9aa
nouveau: Unreference pushbuf objects on channel destruction.
...
- unreference pushbuf objects on channel destruction
Based on Krzysztof Smiechowicz's patch.
2009-12-28 18:07:08 -05:00
Francisco Jerez
cb1caaaa05
nouveau: Update some object definitions from renouveau.xml.
...
Signed-off-by: Francisco Jerez <currojerez@riseup.net>
2009-12-28 18:01:42 +01:00
Marcin Kościelnicki
5fd00ddc9f
nouveau: Update nouveau_class.h with new renouveau.xml definitions.
...
Signed-off-by: Francisco Jerez <currojerez@riseup.net>
2009-12-28 17:49:10 +01:00
Ben Skeggs
f1660c2491
nouveau: remove delayed kernel bo creation
...
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2009-12-17 13:07:18 +10:00
Ben Skeggs
edc77dd291
nouveau: Use drmIoctl so we restart ioctl on EINTR or EAGAIN
...
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2009-12-09 14:51:00 +10:00
Ben Skeggs
7c82527b4f
nouveau: move reloc code down, nothing to see here
...
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2009-12-09 14:51:00 +10:00
Kristian Høgsberg
10ce0ec188
Merge remote branch 'origin/master' into libdrm
2009-11-20 17:09:03 -05:00
Kristian Høgsberg
4f57abfe66
Move libdrm/ up one level
2009-11-17 11:15:06 -05:00