r600g: move streamout state to drivers/radeon
authorMarek Olšák <marek.olsak@amd.com>
Tue, 13 Aug 2013 19:49:59 +0000 (21:49 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 30 Aug 2013 23:34:30 +0000 (01:34 +0200)
commitd5b23dfc1c07f98afe749053b9cb4b69829fe3d4
tree4b3bc4c8b7a65485fef4d2ab7a0cad511b6c5018
parent13a1a8b877e109f423090de8c2807d5c3d9cf95a
r600g: move streamout state to drivers/radeon

This streamout state code will be used by radeonsi.

There are new structures r600_common_context and r600_common_screen.
What is inherited by what is shown here:

pipe_context -> r600_common_context -> r600_context
pipe_screen -> r600_common_screen -> r600_screen

The common structures reside in drivers/radeon. Currently they only contain
enough functionality to be able to handle streamout. Eventually I'd like
the whole pipe_screen implementation to be shared and some of the context
stuff too.

This is quite big, but most changes are because of the new structures and
the fact r600_write_value is replaced by radeon_emit.

Thanks to Tom Stellard for fixing the build for r600g/compute.

Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Tested-by: Tom Stellard <thomas.stellard@amd.com>
27 files changed:
src/gallium/drivers/r600/compute_memory_pool.c
src/gallium/drivers/r600/evergreen_compute.c
src/gallium/drivers/r600/evergreen_hw_context.c
src/gallium/drivers/r600/evergreen_state.c
src/gallium/drivers/r600/evergreend.h
src/gallium/drivers/r600/r600_asm.c
src/gallium/drivers/r600/r600_blit.c
src/gallium/drivers/r600/r600_buffer.c
src/gallium/drivers/r600/r600_hw_context.c
src/gallium/drivers/r600/r600_isa.c
src/gallium/drivers/r600/r600_pipe.c
src/gallium/drivers/r600/r600_pipe.h
src/gallium/drivers/r600/r600_query.c
src/gallium/drivers/r600/r600_resource.c
src/gallium/drivers/r600/r600_resource.h
src/gallium/drivers/r600/r600_shader.c
src/gallium/drivers/r600/r600_state.c
src/gallium/drivers/r600/r600_state_common.c
src/gallium/drivers/r600/r600_texture.c
src/gallium/drivers/r600/r600_uvd.c
src/gallium/drivers/r600/sb/sb_core.cpp
src/gallium/drivers/radeon/Makefile.sources
src/gallium/drivers/radeon/r600_cs.h [new file with mode: 0644]
src/gallium/drivers/radeon/r600_pipe_common.c [new file with mode: 0644]
src/gallium/drivers/radeon/r600_pipe_common.h [new file with mode: 0644]
src/gallium/drivers/radeon/r600_streamout.c [new file with mode: 0644]
src/gallium/drivers/radeon/r600d_common.h [new file with mode: 0644]