st/mesa: move, clean-up shader variant key decls/inits
authorBrian Paul <brianp@vmware.com>
Wed, 6 Mar 2019 17:23:59 +0000 (10:23 -0700)
committerBrian Paul <brianp@vmware.com>
Fri, 8 Mar 2019 14:40:35 +0000 (07:40 -0700)
commit67d96816ff50ad61e8f4ade9031c9cf221983ae6
tree2d72058c24a8628b484eecac349ba906dd07bbae
parent76a10fc89e73a21771523a8c343c8f5727fbe16a
st/mesa: move, clean-up shader variant key decls/inits

Move the variant key declarations inside the scope they're used.
Use designated initializers instead of memset() calls.

Reviewed-by: Neha Bhende <bhenden@vmware.com>
src/mesa/state_tracker/st_atom_shader.c
src/mesa/state_tracker/st_program.c