r600g: Set geometry properties in r600_create_shader_state()
authorEdward O'Callaghan <eocallaghan@alterapraxis.com>
Sat, 29 Aug 2015 08:31:08 +0000 (18:31 +1000)
committerMarek Olšák <marek.olsak@amd.com>
Sun, 30 Aug 2015 09:41:00 +0000 (11:41 +0200)
commit3eed81a97b2fa1f98a2ae577b8b6e04cb144f31a
treeb64b9a673f7b1d6b0a7063076cdcef4b6adf960b
parentb4dee1b6360a91117c7a754ed70f359f6000a0de
r600g: Set geometry properties in r600_create_shader_state()

The selector is shared by all shader variants, so the
individual shaders shouldn't change it. Use tgsi_shader_scan()
results to set geometry properties within a
r600_create_shader_state() call and treat said propertices in
the selector as read-only within r600_shader_from_tgsi().

Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Signed-off-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/r600/r600_pipe.h
src/gallium/drivers/r600/r600_shader.c
src/gallium/drivers/r600/r600_state_common.c