radeonsi: implement streamout shader support
authorMarek Olšák <marek.olsak@amd.com>
Sun, 1 Sep 2013 21:59:06 +0000 (23:59 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 12 Sep 2013 23:04:44 +0000 (01:04 +0200)
commit8d03d923b6f6816f3771ae3186cd801bfbb98d4c
tree9f6f551d758498a3d9e5687e7404332d9dfdd481
parent9d16e70b3f95ea632a0442458c0d5027a8b42d36
radeonsi: implement streamout shader support

The shader is responsible for writing to streamout buffers using
the TBUFFER_STORE_FORMAT_* instructions.

The locations of some input SGPRs and VGPRs are assigned dynamically, because
the input SGPRs controlling streamout are not declared if they are not needed,
decreasing the indices of all following inputs.

Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
src/gallium/drivers/radeonsi/radeonsi_shader.c
src/gallium/drivers/radeonsi/radeonsi_shader.h
src/gallium/drivers/radeonsi/si_state_draw.c