r300g: import the last bits of libdrm and cleanup the whole thing
authorMarek Olšák <maraeo@gmail.com>
Thu, 23 Dec 2010 09:40:54 +0000 (19:40 +1000)
committerMarek Olšák <maraeo@gmail.com>
Fri, 11 Feb 2011 00:07:25 +0000 (01:07 +0100)
commit6ccab620a0e7364ab6c0d902b3ddf58ee988f7fa
tree6228427e261efd6187915ab651b78f99d3ff7dd1
parentc0beaf6e6d5764531a4cb21d0d0a9a1fd09affee
r300g: import the last bits of libdrm and cleanup the whole thing

Based on Dave's branch.

The majority of this commit is a cleanup, mainly renaming things.
There wasn't much code to import, just ioctl calls.

Also done:
- implemented unsynchronized bo_map (important optimization!)
- radeon_bo_is_referenced_by_cs is no longer a refcount hack
- dropped the libdrm_radeon dependency

I'm surprised that this has resulted in less code in the end.
28 files changed:
src/gallium/drivers/r300/r300_context.c
src/gallium/drivers/r300/r300_context.h
src/gallium/drivers/r300/r300_query.c
src/gallium/drivers/r300/r300_render.c
src/gallium/drivers/r300/r300_resource.c
src/gallium/drivers/r300/r300_screen_buffer.c
src/gallium/drivers/r300/r300_screen_buffer.h
src/gallium/drivers/r300/r300_state.c
src/gallium/drivers/r300/r300_texture.c
src/gallium/drivers/r300/r300_transfer.c
src/gallium/drivers/r300/r300_winsys.h
src/gallium/targets/dri-r300/Makefile
src/gallium/targets/dri-r300/SConscript
src/gallium/targets/dri-r600/SConscript
src/gallium/targets/egl-static/SConscript
src/gallium/targets/egl/Makefile
src/gallium/targets/xorg-radeon/Makefile
src/gallium/winsys/radeon/drm/Makefile
src/gallium/winsys/radeon/drm/SConscript
src/gallium/winsys/radeon/drm/radeon_drm_bo.c [new file with mode: 0644]
src/gallium/winsys/radeon/drm/radeon_drm_bo.h [new file with mode: 0644]
src/gallium/winsys/radeon/drm/radeon_drm_buffer.c [deleted file]
src/gallium/winsys/radeon/drm/radeon_drm_buffer.h [deleted file]
src/gallium/winsys/radeon/drm/radeon_drm_common.c
src/gallium/winsys/radeon/drm/radeon_drm_cs.c
src/gallium/winsys/radeon/drm/radeon_drm_cs.h
src/gallium/winsys/radeon/drm/radeon_r300.c [deleted file]
src/gallium/winsys/radeon/drm/radeon_winsys.h