radeonsi: enable the barycentric optimization in all cases
authorMarek Olšák <marek.olsak@amd.com>
Thu, 30 Jun 2016 00:16:16 +0000 (02:16 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 4 Jul 2016 22:47:12 +0000 (00:47 +0200)
commit4accb02d7a3722b3e1eb12252201846353f002b7
tree8833ed9d71940ed1d3079ae70e7d2b5e2d80b757
parent476e9cee1d0cbe321c401277214e6c36ce5b18c9
radeonsi: enable the barycentric optimization in all cases

Handle the bc_optimize SGPR bit if both CENTER and CENTROID are enabled.
This should increase the PS launch rate for big primitives with MSAA.
Based on discussion with SPI guys.

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