radeonsi: precompute IA_MULTI_VGT_PARAM values into a table
authorMarek Olšák <marek.olsak@amd.com>
Wed, 25 Jan 2017 01:47:15 +0000 (02:47 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 30 Jan 2017 12:27:14 +0000 (13:27 +0100)
commit5f99c490089cae28de7226946d726f158838f8b9
treecb3c0f28d5bef3344c60df10fddb5f8213236ced
parentc78177fc642e468f07e4c839b4aa67778b62d663
radeonsi: precompute IA_MULTI_VGT_PARAM values into a table

The perf difference is very small: 0.99% -> 0.40% for the time spent
in si_get_ia_multi_vgt_param when si_draw_vbo is 20%. Pretty much nothing.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeonsi/si_pipe.c
src/gallium/drivers/radeonsi/si_pipe.h
src/gallium/drivers/radeonsi/si_state.c
src/gallium/drivers/radeonsi/si_state.h
src/gallium/drivers/radeonsi/si_state_draw.c
src/gallium/drivers/radeonsi/si_state_shaders.c