summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2011-12-13Extend Glamo checks to look more like nouveau/radeonHEADmasterChristoph Brill1-1/+4
Especially helpful is the output if Glamo will be built or not.
2011-12-13New include pathThomas White2-2/+2
2011-12-13glamo: dont use __userMartin Jansa1-2/+2
2011-12-13Add burst command ioctlThomas White1-0/+17
2011-12-13Add subdata functionThomas White2-1/+20
2011-12-13WhitespaceThomas White1-4/+4
2011-12-13GEM buffer naming stuffThomas White2-2/+21
2011-12-13Remove log message when deleting with map_count > 0Thomas White1-4/+0
This happens all the time with the latest DDX changes. No point filling the log up.
2011-12-13Tweak to buffer waitThomas White2-0/+2
2011-12-13Count mappings correctlyThomas White1-1/+1
2011-12-13Initialise cref to zeroThomas White1-0/+1
2011-12-13Map counting fixesThomas White1-0/+11
2011-12-13Remove debugThomas White1-4/+0
This just removes a couple of debug messages which are no longer needed.
2011-12-13Formatting and copyright noticesThomas White1-116/+152
2011-12-13Single point of truth for the virtual addressThomas White1-14/+4
2011-12-13Set bo_gem->virtual = NULL on unmapThomas White1-0/+1
2011-12-13Don't forget to #include config.hThomas White1-0/+5
This is definitely needed, to help handle large files.
2011-12-13First part of GEM memory mapping implementationThomas White3-37/+61
2011-12-13This include doesn't belong hereThomas White1-1/+0
2011-12-13Update glamo_drm.h from kernel sourceThomas White1-10/+8
2011-12-13Add missing include and castThomas White1-1/+2
2011-12-13Authorship, whitespaceThomas White1-6/+10
2011-12-13Add domain #define, and install glamo_drm.hThomas White2-0/+3
2011-12-13Initial libdrm_glamo bitsMartin Jansa10-1/+874
2011-12-13libdrm: update drm headers from kernel, including new overlay ioctls & structsJesse Barnes6-0/+385
Add structs and functions necessary for the new plane and fb handling code, including a new header, drm_fourcc.h, that includes the surface formats supported by various DRM drivers. Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
2011-12-13configure: Bump version for 2.4.29Chris Wilson1-1/+1
Yet another release required for new API
2011-12-13intel: Remove the fresh assertions used to debug the vma cacheingChris Wilson1-6/+12
Hopefully all the bugs in the callers have been found, so time to handle the failures "gracefully" again. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-12-13intel: Update map-count for an early error return during mappingChris Wilson1-0/+2
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-12-06intel: Evict cached VMA in order to make room for new mappingsChris Wilson1-16/+24
As the max number of VMA mappings is a hard per-process limit, we need to include the number of currently active mappings when evicting in order to make room for a new mmap. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-12-05intel: Add an interface to limit vma cachingChris Wilson2-21/+99
There is a per-process limit on the number of vma that the process can keep open, so we cannot keep an unlimited cache of unused vma's (besides keeping track of all those vma in the kernel adds considerable overhead). However, in order to work around inefficiencies in the kernel it is beneficial to reuse the vma, so keep a MRU cache of vma. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-12-05test/radeon: add missing files for distDave Airlie1-0/+2
2011-12-05intel: Clean up mmaps on freeing the bufferChris Wilson1-0/+14
As a precautionary measure munmap on buffer free so that we never leak the vma. Also include a warning during debugging. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-12-05configure: Bump version to 2.4.28Chris Wilson1-1/+1
So that we can pull a couple of Intel bug fixes into xf86-video-intel. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-12-05intel: Unmap buffers during drm_intel_gem_bo_unmapChris Wilson1-6/+21
We cannot afford to cache the vma per open bo as this may exhaust the per-process limits. References: https://bugs.freedesktop.org/show_bug.cgi?id=43075 References: https://bugs.freedesktop.org/show_bug.cgi?id=40066 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-12-04intel: limit aperture space to mappable area on gen3Daniel Vetter1-0/+8
Otherwise we blow up on heavy tiled blitter loads (with giant pixmaps). Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Acked-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-11-27nouveau: Mark nouveau subchannel unbound nouveau_grobj_freeMaarten Lankhorst1-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>
2011-11-10tests/radeon: radeon specific testJerome Glisse7-0/+450
Initial test only include ttm test for stressing ttm memory allocations. Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2011-11-01Fix compilation with -Werror=int-to-pointer-cast -Werror=pointer-to-int-castJeremy Huddleston1-4/+4
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-10-29configure: version bump for 2.4.27 release.Eric Anholt1-1/+1
Push the new Intel API for use by mesa. Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-10-29intel: Share the implementation of BO unmap between CPU and GTT mappings.Eric Anholt1-15/+5
Before this, consumers of the libdrm API that might map a buffer either way had to track which way was chosen at map time to call the appropriate unmap. This relaxes that requirement by making drm_intel_bo_unmap() always appropriate. Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-10-29intel: Don't call the SW_FINISH ioctl unless a CPU-mapped write was done.Eric Anholt1-9/+21
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-10-29intel: Remove stale comment.Eric Anholt1-3/+0
This used to be next to some map refcounting code, but that is long dead. Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-10-28intel: Add an interface for removing relocs after they're added.Eric Anholt2-0/+44
This lets us replace the current inner drawing loop of mesa: for each prim { compute bo list if (check_aperture_space(bo list)) { batch_flush() compute bo list if (check_aperture_space(bo list)) { whine_about_batch_size() fall back; } } upload state to BOs } with this inner loop: for each prim { retry: upload state to BOs if (check_aperture_space(batch)) { if (!retried) { reset_to_last_prim() batch_flush() } else { if (batch_flush()) whine_about_batch_size() goto retry; } } } This avoids having to implement code to walk over certain sets of GL state twice (the "compute bo list" step). While it's not a performance improvement, it's a significant win in code complexity: about -200 lines, and one place to make mistakes related to aperture space instead of N places to forget some BO we should have included. Note how if we do a reset in the new loop , we immediately flush. We don't need to check aperture space -- the kernel will tell us if we actually ran out of aperture or not. And if we did run out of aperture, it's because either the single prim was too big, or because check_aperture was wrong at the point of setting up the last primitive. Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-10-28intel: Use stdbool.h for dealing with boolean values.Eric Anholt1-32/+33
A few of the bitfield-based booleans are left in place. Changing them to "bool" results in the same code size, so I'm erring on the side of not changing things. Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-10-19nouveau: free in error path if drmAvailable fails.Dave Airlie1-1/+3
This was reported in coverity. Signed-off-by: Dave Airlie <airlied@redhat.com>
2011-10-19modetest: Call dirty fb on modesetJakob Bornecrantz1-0/+4
Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
2011-10-19modetest: Print extra info if we fail to create a framebufferJakob Bornecrantz1-1/+2
Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
2011-10-19modetest: Check error message from pageflip ioctlJakob Bornecrantz1-2/+6
Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
2011-10-19vbltest: Check error codes returned from libdrmJakob Bornecrantz1-4/+16
Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
2011-10-19tests: Add vmwgfx driver to probed drivers in testsJakob Bornecrantz2-2/+2
Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>