summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2009-12-02Change the number on the dirty ioctl to match upstreammodesetting-dirty-libdrmJakob Bornecrantz1-1/+1
2009-11-30Change the dirty ioctl a bit and comment itJakob Bornecrantz1-2/+32
2009-11-26Bring dirty code from old branchJakob Bornecrantz4-0/+42
2009-11-25Correctly set DRM_MAX_MINOR for all platforms.Robert Noland2-6/+4
DRM_MAJOR is platform specific, but not used outside of xf86drm.c that I can find.
2009-11-24Add missing DRM_MAX_MINOR defineAlex Deucher1-0/+1
lost in 500f5b524000ed5930301f4303744cb4c0a19b75 Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2009-11-24More fixups to allow mesa to buildRobert Noland3-2/+4
2009-11-24Finish fixing the build on FreeBSDRobert Noland4-6/+7
2009-11-23Add drmGetDeviceNameFromFd functionKristian Høgsberg4-0/+87
Determines the /dev filename of the drm fd argument.
2009-11-23Fix build on *BSDKristian Høgsberg2-10/+35
This adds a minimal #ifdef clause to drm.h that we'll push upstream. Once that goes in we can share drm.h between linux, libdrm, and the bsd's.
2009-11-23Don't hardcore 'yes', use in configure.ac outputKristian Høgsberg1-2/+4
Oops, I assumed intel was always enable, but it just defaults to on.
2009-11-23Output summary of enabled features at the end of configure.acKristian Høgsberg1-0/+8
2009-11-23Drop duplicated radeon_*.h files in include/drmKristian Høgsberg5-609/+0
These files are userspace headers and live in radeon/
2009-11-20Put mach64_drm.h back in to avoid breaking mesa buildKristian Høgsberg2-1/+258
We may want to drop mach64 from mesa instead, but that's a different discussion.
2009-11-20Install kernel headers in ${includedir}/drmKristian Høgsberg4-1/+41
2009-11-21nouveau: fix DRM headersPekka Paalanen2-57/+220
The nouveau_drmif.h is not the Nouveau DRM kernel ABI file, but purely user space stuff. Remove it, it does not belong in include/drm/. Copy the right header from Nouveau kernel v2.6.31-rc9-757-gaca551c. Signed-off-by: Pekka Paalanen <pq@iki.fi>
2009-11-20Merge remote branch 'origin/master' into libdrmKristian Høgsberg6-38/+206
2009-11-20Update READMEKristian Høgsberg1-58/+27
2009-11-18libdrm_radeon: add radeon_bo_is_referenced_by_cs functionMaciej Cencora1-0/+14
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2009-11-17Drop stale TODO and unused ChangeLogKristian Høgsberg3-31/+1
2009-11-17Move libdrm/ up one levelKristian Høgsberg58-74/+58
2009-11-17Drop shared-core, bsd-core, linux-core and scripts subdirsKristian Høgsberg404-137098/+0
2009-11-17Use headers copied from kernel instead of shared-coreKristian Høgsberg9-12/+8
2009-11-17Fix typo in i915 pipe_from_crtc_id ioctl struct nameKristian Høgsberg1-1/+1
2009-11-17Copy headers from kernel v2.6.32-rc6-130-g5b8f0beKristian Høgsberg19-1/+5384
2009-11-17Add makefile rule to copy headers from kernel treeKristian Høgsberg3-0/+14
2009-11-15nouveau: Update some nouveau_class.h definitions from renouveau.xml.Francisco Jerez1-32/+154
Signed-off-by: Francisco Jerez <currojerez@riseup.net> Signed-off-by: Pekka Paalanen <pq@iki.fi>
2009-11-11intel: Export madviseChris Wilson4-6/+38
Wrap the madvise ioctl for use in APPLE_object_purgeable. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Acked-by: Jesse Barnes <jbarnes@virtuousgeek.org>
2009-11-05Only install libdrm_intel.pc if we build libdrm_intelJulien Cristau4-4/+6
2009-11-04nouveau: turn another assertion into an errorBen Skeggs1-1/+5
Signed-off-by: Ben Skeggs <skeggsb@beleth.(none)>
2009-11-04nouveau: modify api slightly to allow caller to handle reloc failuresBen Skeggs3-19/+90
Signed-off-by: Ben Skeggs <skeggsb@beleth.(none)>
2009-11-04nouveau: add reloc refcnt to pending bo listBen Skeggs3-7/+19
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2009-11-04nouveau: drop rendering on the floor rather than asserting if flush failsBen Skeggs1-5/+2
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2009-11-04nouveau: update view of available aperture space after each flushBen Skeggs3-5/+22
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2009-11-03radeon: fix allocationMathias Fröhlich1-1/+2
The old code increments the command stream size by another kbyte, but does not make sure that the requested packet size fits into the stream. The patch ensures that the whole next packet fits there and rounds the allocated size to a power of two. Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2009-10-29Add support for vblank eventsKristian Høgsberg3-0/+90
The kernel will now write data to the DRM fd for various event types if requested. Currently, the only supported event is a vblank event: it contains the vblank count for the event as well as a timestamp from when the event ocurred. Since the DRM fd is now pollable, it's easy to integrate into existing event loops.
2009-10-20intel: Only call clock_gettime once per unreference_final.Eric Anholt1-15/+32
Notably when freeing a batchbuffer, we often end up freeing many of the buffers it points at as well. Avoiding repeated calls brings us a 9% CPU win for cairo-gl. [ # ] backend test min(s) median(s) stddev. count before: [ 0] gl firefox-talos-gfx 58.941 58.966 0.75% 3/3 after: [ 0] gl firefox-talos-gfx 54.186 54.195 0.49% 3/3
2009-10-20intel: Improve bo_references performance by skipping the tree walk.Eric Anholt1-9/+15
If the target we're asking about hasn't ever been used as a relocation target, then it obviously hasn't been used as a target by the batch's reloc tree. This is the common case for good GL programming where you only map fresh buffers, and gives us a 5% win in cairo-gl. [ # ] backend test min(s) median(s) stddev. count before: [ 0] gl firefox-talos-gfx 64.680 64.756 0.06% 3/3 after: [ 0] gl firefox-talos-gfx 60.816 60.970 0.29% 3/3
2009-10-20nouveau: retry if pushbuf ioctl interrupted by signalBen Skeggs1-0/+6
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2009-10-19nouveau: function to return status of bo being referenced in pushbufBen Skeggs2-0/+21
Will be used to implement gallium's is_{texture,buffer}_referenced() callbacks properly. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2009-10-13nouveau: nv30: add render target logbase2 width,heightPatrice Mandin1-0/+4
2009-10-13intel: Add the defines for the kernel overlay support landing in 2.6.33.Eric Anholt1-0/+71
2009-10-13intel: Fallback to atomic-ops.h [libatomic-ops-dev]Chris Wilson2-1/+26
Use the external implementation for atomic operations across a wide range of architectures. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2009-10-13configure: Typo in error message.Chris Wilson1-1/+1
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2009-10-12configure: Conditionally build libdrm_intelChris Wilson1-5/+14
Only build libdrm_intel automatically if we have support for atomic operations. To force configure to build drm pass --enable-intel, which will cause the configure to error if no support is found. Or pass --disable-intel to explicitly prevent libdrm_intel from being built. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2009-10-08Bump to 2.4.15 for release.2.4.15Eric Anholt1-1/+1
2009-10-08intel: Remove the asserts about the ignored alignment parameter.Eric Anholt1-2/+0
I slipped it in with the alloc_tiled changes, since we were explicitly throwing the parameter away. It caught some bogus released code, which we've now fixed, so remove the asserts to keep old drivers working.
2009-10-06intel: Add a bo_alloc function for tiled BOs.Jesse Barnes5-8/+178
This simplifies driver code in handling object allocation, and also gives us an opportunity to possibly cache tiled buffers if it turns out to be a win. [anholt: This is chopped out of the execbuf2 patch, as it seems to be useful separately and cleans up the execbuf2 changes to be more obvious]
2009-10-06intel: Fix up some stale doxygen comments.Eric Anholt2-5/+5
2009-10-06intel: Reformat to the kernel coding style. Welcome to the 8-space future.Eric Anholt8-2682/+2769
This is done with: Lindent *.[ch] perl -pi -e 's|drm_intel_bo \* |drm_intel_bo *|g' *.[ch] perl -pi -e 's|drm_intel_bufmgr \* |drm_intel_bufmgr *|g' *.[ch] perl -pi -e 's|drm_intel_bo_gem \* |drm_intel_bo_gem *|g' *.[ch] perl -pi -e 's|drm_intel_bufmgr_gem \* |drm_intel_bufmgr_gem *|g' *.[ch] perl -pi -e 's|_fake \* |_fake *|g' *.[ch] hand-editing to whack indented comments into line and other touchups.
2009-10-06intel: Don't allocate more relocation entries than the BO could support.Eric Anholt1-2/+6
This saves 32k of relocation entry storage for many 965 state buffers. No noticeable impact on performance for cairo-gl firefox.