summaryrefslogtreecommitdiff
path: root/radeon
AgeCommit message (Collapse)AuthorFilesLines
2010-12-02radeon: silence valgrind warnings by zeroing memoryMarek Olšák2-2/+2
2010-06-10Fix radeon distcheck.Eric Anholt1-1/+2
2010-04-26radeon: use the const qualifier in radeon_cs_write_tableMarek Olšák1-1/+1
Signed-off-by: Marek Olšák <maraeo@gmail.com>
2010-04-08drm/radeon: add new cs command stream dumping facilitiesJerome Glisse4-5/+667
Dump command stream + associated bo into a binary file which follow a similar design as json file. It allows to intercept a command stream and replay it in a standalone program (see radeondb tools).
2010-03-29drm/radeon: tab/whitespace cleanupJerome Glisse1-5/+5
2010-03-17Install headers to $(includedir)/libdrmJulien Cristau2-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>
2010-03-17libdrm_radeon: Optimize cs_gem_reloc to do less looping.Pauli Nieminen6-32/+110
bo->referenced_in_cs is checked if bo is already in cs. Adding and removing reference in bo is done with atomic operations to allow parallel access to a bo from multiple contexts. cs->id generation code quarentees there is not duplicated ids which limits number of cs->ids to 32. If there is more cs objects rest will get id 0. V2: - Fix configure to check for atomics operations if libdrm_radeon is only selected. - Make atomic operations private to libdrm. This optimization decreases cs_write_reloc share of torcs profiling from 4.3% to 2.6%. Tested-by: Michel Dänzer <michel@daenzer.net> Signed-off-by: Pauli Nieminen <suokkos@gmail.com>
2010-02-18radeon: add square-tiling flagMarek Olšák1-0/+1
2010-02-04libdrm/radeon: Fix section size mismatch to reset the section.Pauli Nieminen1-1/+4
If there is section size mismatch reusing the section object makes section start fail. Reseting the object before doing error checking prevents the possible flood of errors.
2010-02-02radeon: enable by default now that kms is out of stagingDave Airlie1-1/+1
2010-01-14radeon: get device id from the kernel, use it in cs_printJerome Glisse1-6/+27
This allow external tools to know for which asics a cs is destinated to.
2010-01-14radeon: simpler cs print functionJerome Glisse1-93/+4
We don't intend libdrm-radeon to become clever enough to decode cs for all GPU we support. Better to let an external tool do the job. This will print raw cs in an easy to parse way.
2010-01-14radeon: indentation + trailing space cleanupJerome Glisse1-20/+18
2010-01-14radeon: indentation & trailing space cleanupJerome Glisse8-165/+189
2010-01-14radeon: indentation + trailing space cleanupJerome Glisse1-11/+11
2009-12-21radeon: fix BO null check, should be in higher level fnDave Airlie2-3/+3
2009-12-21radeon: straighten out the API insanity.Dave Airlie12-647/+511
as Michel pointed out we are exposing too much info for these object for this to be maintainable going forward. This patch set minimises the exposed parts of the radeon_bo and radeon_cs objects to the piece necessary for ddx/mesa to operate at a decent speed. The major problem is mesa contains a legacy BO/CS managers which we still need to expose functionality to, and we really cannot change the API until we can drop the non-KMS codepaths. Signed-off-by: Dave Airlie <airlied@redhat.com>
2009-12-07radeon: Use drmIoctl so we restart ioctl on EINTR or EAGAINJerome Glisse1-4/+3
This is needed as change in kernel will lead to ioctl returning EINTR if they are interrupted. Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2009-11-20Merge remote branch 'origin/master' into libdrmKristian Høgsberg1-0/+14
2009-11-17Move libdrm/ up one levelKristian Høgsberg11-0/+1849