st/mesa: don't load state parameters if there are none
authorMarek Olšák <marek.olsak@amd.com>
Thu, 22 Oct 2015 17:46:07 +0000 (19:46 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 23 Oct 2015 22:01:20 +0000 (00:01 +0200)
commitdd05824b8968c723fba767698b496691e8dc81e3
treef2d17af8d6662154b02c1a5eacb48d7b50befd07
parent98546bfd038bc07a8cc7fed259c5022486bba473
st/mesa: don't load state parameters if there are none

Out of 7063 shaders from my shader-db:
- 6564 (93%) shaders don't have any state parameters.
- 347 (5%) shaders have 1 state parameter for WPOS lowering.
- The remaining 2% have more state parameters, usually matrices.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/state_tracker/st_atom_constbuf.c