summaryrefslogtreecommitdiff
path: root/libdrm/radeon
AgeCommit message (Collapse)AuthorFilesLines
2009-11-17Move libdrm/ up one levelKristian Høgsberg11-1849/+0
2009-11-17Use headers copied from kernel instead of shared-coreKristian Høgsberg1-1/+1
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-03libdrm_radeon: Zero-initialize structures to silence valgrind warningsNicolai Hähnle1-0/+8
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
2009-09-15radeon: fix 32/64 bit issue with sign extensionDave Airlie1-6/+6
Not sure what intptr_t was up to here. Reported and tested by: Kevin DeKorte Signed-off-by: Dave Airlie <airlied@redhat.com>
2009-08-28Revert "libdrm_radeon: Always wait for BO idle in bo_map."Michel Dänzer1-1/+4
This reverts commit 0a732983f059c353b267b6bf877e1f0eea4e033f. Paul Nieminen and Dave Airlie pointed out on IRC that this shouldn't be necessary. I was seeing visual corruption in X before I made this change, but I can't reproduce that anymore so it was probably an unrelated issue.
2009-08-27libdrm_radeon: Always wait for BO idle in bo_map.Michel Dänzer1-4/+1
This allows users to eliminate explicit bo_wait calls before bo_map calls.
2009-08-22radeon: add support for busy/domain check interface.Pauli Nieminen2-0/+28
airlied: modified the interface to drop busy return value, just return it normally, also fixed int->uint32_t for domain Signed-off-by: Pauli Nieminen <suokkos@gmail.com>
2009-08-18libdrm_radeon: Optimize copy of table to cs buffer with specialized call.Pauli Nieminen1-0/+9
Using this call in OUT_BATCH_TABLE reduces radeonEmitState cpu usage from 9% to 5% and emit_vpu goes from 7% to 1.5%. I did use calgrind to profile gears for cpu hotspots with r500 card. Signed-off-by: Pauli Nieminen <suokkos@gmail.com>
2009-08-18libdrm_radeon: Fix loops so that compiler can optimize them.Pauli Nieminen1-6/+6
GCC did war about optimization not possible because possible forever loop. Signed-off-by: Pauli Nieminen <suokkos@gmail.com>
2009-08-18libdrm/radeon: Update head of linked list not to point freed memory.Pauli Nieminen1-0/+1
Signed-off-by: Pauli Nieminen <suokkos@gmail.com>
2009-08-17radeon: fix bo wait at map time.Dave Airlie1-6/+6
2009-08-15radeon: fix GTT writing space checkDave Airlie1-1/+1
Noticed by vehemens on irc. Signed-off-by: Dave Airlie <airlied@redhat.com>
2009-08-01libdrm_radeon: add tiling supportDave Airlie2-2/+58
2009-08-01radeon: don't map/unmap explicitly.Dave Airlie1-5/+14
This caches the mapping and just use mapping as a sync point
2009-07-06radeon: move cs space checking code to libdrm_radeon.Dave Airlie6-108/+288
This ports a lot of the space checking code into a the common library, so that the DDX and mesa can use it.
2009-07-03radeon: fix cs buffer realloc paddingJerome Glisse1-2/+1
We always realloc at least 0x1000 dwords (page on most system) when growing the cs buffer this is to avoid having to realloc at each cs_begin.
2009-07-03radeon: fix realloc of packets.Dave Airlie1-1/+1
This should use ndw not cdw, using cdw leads to realloc alignment going wrong
2009-07-02radeon: add buffer naming functionDave Airlie2-0/+16
2009-06-30radeon: add support for write followed by read relocs.Dave Airlie1-5/+12
the DDX does this and used to handle it internally
2009-06-17libdrm/radeon: add initial libdrm_radeonDave Airlie10-0/+1535
requires --enable-radeon-experimental-api for now
2008-12-10Revert "Merge branch 'modesetting-gem'"Jesse Barnes9-1314/+0
This reverts commit 6656db10551bbb8770dd945b6d81d5138521f208. We really just want the libdrm and ioctl bits, not all the driver stuff.
2008-11-16libdrm-radeon: add print callback to cs & small fixesJerome Glisse5-6/+113
2008-11-15libdrm-radeon: unref return current BO ptr to reflect BO destructionJerome Glisse5-19/+21
2008-11-14libdrm-radeon: unreference buffer once cs stream is submited or on cs cleanJerome Glisse1-4/+14
BO are referenced once by reloc to make sure that they not destroyed before we get a chance to flush the cmd stream, so we need to unreference them once in cs submit or cs erase if cs i never submitted so bo can be destructed.
2008-11-14libdrm-radeon: new tracker toolsJerome Glisse4-14/+224
To keep record of bo activities and print them when necessary, should help in tracking unbalanced ref/unref calls.
2008-11-12radeon+libdrm-radeon: change relocation informationsJerome Glisse3-56/+82
Relocation now consist of the following informations (in this order) : handle buffer object handle identifier start_offset start offset of first data of the buffer object used by the cs end_offset end offset of last data of the buffer object used by the cs read_domain read domain (either VRAM, or GTT as GPU is invalid for CS) write_domain write domain (either VRAM, or GTT as GPU is invalid for CS) flags flags used for further optimization (like discard previous buffer content or forget buffer content after cs which can help in avoiding moving content in or out)
2008-11-10libdrm-radeon: be verbose on bo failure and cleanup cs a bitJerome Glisse2-42/+44
2008-11-09libdrm-radeon: update libdrm-radeon to match current CS relocation structuresJerome Glisse5-89/+143
2008-11-06radeon: lib radeon add bo & cs gem backendJerome Glisse6-38/+365
2008-11-05radeon: libdrm_radeon add handle to debug stringJerome Glisse1-2/+2
2008-11-02radeon: debug boJerome Glisse1-10/+17
2008-10-29radeon: libdrm_radeon updates bo & cs interfacesJerome Glisse2-22/+78
2008-10-27radeon: reloc are backend dependantJerome Glisse1-1/+1
2008-10-27radeon: radeon util libraryJerome Glisse5-0/+513