r600g,radeonsi: consolidate buffer code, add handling of DISCARD_RANGE for SI
authorMarek Olšák <marek.olsak@amd.com>
Fri, 29 Nov 2013 16:28:23 +0000 (17:28 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 12 Dec 2013 17:34:11 +0000 (18:34 +0100)
commit91aca8c662faf0ec311968b2897a72a6d08b199d
tree97a5c26785cb01493158a8e2cb3c2c5965c5b08d
parent12806449fa35aff47ad6f4615ede55776c9f66c8
r600g,radeonsi: consolidate buffer code, add handling of DISCARD_RANGE for SI

This adds 2 optimizations for radeonsi:
- handling of DISCARD_RANGE
- mapping an uninitialized buffer range is automatically UNSYNCHRONIZED

Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
13 files changed:
src/gallium/drivers/r600/Makefile.sources
src/gallium/drivers/r600/r600_buffer.c [deleted file]
src/gallium/drivers/r600/r600_pipe.c
src/gallium/drivers/r600/r600_pipe.h
src/gallium/drivers/r600/r600_state_common.c
src/gallium/drivers/radeon/r600_buffer_common.c
src/gallium/drivers/radeon/r600_pipe_common.c
src/gallium/drivers/radeon/r600_pipe_common.h
src/gallium/drivers/radeonsi/r600_buffer.c
src/gallium/drivers/radeonsi/r600_resource.c
src/gallium/drivers/radeonsi/r600_translate.c
src/gallium/drivers/radeonsi/radeonsi_pipe.c
src/gallium/drivers/radeonsi/radeonsi_pipe.h