r300g: use internal BO handle for add_buffer and write_reloc
authorMarek Olšák <maraeo@gmail.com>
Fri, 3 Dec 2010 01:48:11 +0000 (02:48 +0100)
committerMarek Olšák <maraeo@gmail.com>
Fri, 3 Dec 2010 03:40:22 +0000 (04:40 +0100)
commit3ba8843307a909f35f2a04e6be6dcadd760ad82b
tree4c69fda7f8962184259483b8b96a85243a84e159
parent6299f241e9fdd86e705d144a42d9b1979c13f9ad
r300g: use internal BO handle for add_buffer and write_reloc

Small perf improvement in ipers.

radeon_drm_get_cs_handle is exactly what this commit tries to avoid
in every write_reloc.
13 files changed:
src/gallium/drivers/r300/r300_context.h
src/gallium/drivers/r300/r300_cs.h
src/gallium/drivers/r300/r300_emit.c
src/gallium/drivers/r300/r300_query.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/winsys/radeon/drm/radeon_buffer.h
src/gallium/winsys/radeon/drm/radeon_drm_buffer.c
src/gallium/winsys/radeon/drm/radeon_r300.c