summaryrefslogtreecommitdiff
path: root/src/gallium/winsys/r600/drm/radeon_bo_pb.c
AgeCommit message (Collapse)Author
2010-12-09r600g: avoid using pb* helper we are loosing previous cpu cycle with itJerome Glisse
r600g is up to a point where all small CPU cycle matter and pb* turn high on profile. It's mostly because pb try to be generic and thus trigger unecessary check for r600g driver. To avoid having too much abstraction & too much depth in the call embedded everythings into r600_bo. Make code simpler & faster. The performance win highly depend on the CPU & application considered being more important on slower CPU and marginal/unoticeable on faster one. Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-12-06r600g: remove useless flush mapJerome Glisse
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-11-02r600g: Fixed unmap condition in radeon_bo_pb_destroy().Tilman Sauerbeck
Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de>
2010-11-02r600g: Made radeon_bo_pb_map_internal() actually call radeon_bo_map().Tilman Sauerbeck
This ensures that we increase bo->map_count when radeon_bo_map_internal() returns successfully, which in turn makes sure we don't decrement bo->map_count below zero later. Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de>
2010-11-02r600g: Removed unused 'ptr' argument from radeon_bo().Tilman Sauerbeck
Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de>
2010-10-05r600g: avoid unneeded bo waitDave Airlie
if we know the bo has gone not busy, no need to add another bo wait thanks to Andre (taiu) on irc for pointing this out.
2010-09-29r600g: cleanupJerome Glisse
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-09-25r600g: Remove unused variable.Vinson Lee
Fixes this GCC warning. radeon_bo_pb.c: In function 'radeon_bo_pb_create_buffer': radeon_bo_pb.c:178: warning: unused variable 'domain'
2010-09-20r600g: add back reference check when mapping bufferJerome Glisse
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-09-20r600g: use pipe context for flushing inside mapJerome Glisse
This allow to share code path btw old & new, also remove check on reference this might make things a little slower but new design doesn't use reference stuff. Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-09-19r600g: Respect PB_USAGE_UNSYNCHRONIZED in radeon_bo_pb_map_internal().Henri Verbeet
2010-09-19r600g: Buffer object maps imply a wait.Henri Verbeet
Unless e.g. PB_USAGE_DONTBLOCK or PB_USAGE_UNSYNCHRONIZED would be specified.
2010-09-19r600g: Check for other references before checking for existing mappings in ↵Henri Verbeet
radeon_bo_pb_map_internal(). Having a non-NULL data pointer doesn't imply it's safe to reuse that mapping, it may have been unmapped but not flushed yet.
2010-09-17r600g: Silence uninitialized variable warning.Vinson Lee
2010-09-17r600g: fixup map flushing.Dave Airlie
long lived maps were getting removed when they shouldn't this tries to avoid that problem by only adding to the flush list on unmap.
2010-09-17r600g: add support for kernel boDave Airlie
this moves to using a pb bufmgr instead of kernel bos directly.
2010-08-29r600g: drop file I added by mistake in a previous commitDave Airlie
2010-08-17r600g: drop libdrm_radeon linkDave Airlie