Dave Airlie
39970c67b7
radeon: move cs space checking code to libdrm_radeon.
...
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-06 15:10:11 +10:00
Jerome Glisse
72a29340ea
radeon: fix cs buffer realloc padding
...
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-03 15:03:03 +02:00
Dave Airlie
af90222c45
radeon: fix realloc of packets.
...
This should use ndw not cdw, using cdw leads to realloc alignment going wrong
2009-07-03 21:13:22 +10:00
Dave Airlie
fbac5891b9
radeon: add buffer naming function
2009-07-02 15:42:01 +10:00
Dave Airlie
de1ed01214
radeon: add support for write followed by read relocs.
...
the DDX does this and used to handle it internally
2009-06-30 12:19:28 +10:00
Dave Airlie
2fa2db138b
libdrm/radeon: add initial libdrm_radeon
...
requires --enable-radeon-experimental-api for now
2009-06-17 17:47:42 +10:00
Jesse Barnes
9583c099b4
Revert "Merge branch 'modesetting-gem'"
...
This reverts commit 6656db1055
.
We really just want the libdrm and ioctl bits, not all the driver
stuff.
2008-12-10 15:50:22 -08:00
Jerome Glisse
c0ba14fd90
libdrm-radeon: add print callback to cs & small fixes
2008-11-16 18:04:43 +01:00
Jerome Glisse
5ae79e7edd
libdrm-radeon: unref return current BO ptr to reflect BO destruction
2008-11-15 10:39:37 +01:00
Jerome Glisse
080a45624b
libdrm-radeon: unreference buffer once cs stream is submited or on cs clean
...
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-14 12:16:10 +01:00
Jerome Glisse
bfbecc5c42
libdrm-radeon: new tracker tools
...
To keep record of bo activities and print them when necessary,
should help in tracking unbalanced ref/unref calls.
2008-11-14 12:16:10 +01:00
Jerome Glisse
a7457915f5
radeon+libdrm-radeon: change relocation informations
...
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-12 16:57:09 +01:00
Jerome Glisse
72997fb372
libdrm-radeon: be verbose on bo failure and cleanup cs a bit
2008-11-10 22:18:22 +01:00
Jerome Glisse
751d024dd5
libdrm-radeon: update libdrm-radeon to match current CS relocation structures
2008-11-09 18:45:43 +01:00
Jerome Glisse
273cc1a698
radeon: lib radeon add bo & cs gem backend
2008-11-06 00:40:06 +01:00
Jerome Glisse
2d822542c7
radeon: libdrm_radeon add handle to debug string
2008-11-05 16:00:04 +01:00
Jerome Glisse
7651b4c424
radeon: debug bo
2008-11-02 16:00:06 +01:00
Jerome Glisse
5d861951b3
radeon: libdrm_radeon updates bo & cs interfaces
2008-10-29 23:40:20 +01:00
Jerome Glisse
af118cd186
radeon: reloc are backend dependant
2008-10-27 23:26:15 +01:00
Jerome Glisse
7617d1fef7
radeon: radeon util library
2008-10-27 19:27:15 +01:00