st/mesa: init hash keys with memset(), not designated initializers
authorBrian Paul <brianp@vmware.com>
Fri, 8 Mar 2019 17:09:15 +0000 (10:09 -0700)
committerBrian Paul <brianp@vmware.com>
Fri, 8 Mar 2019 17:23:11 +0000 (10:23 -0700)
commite5e2be3c737d6770b2973e2c9a84ebba9498487b
tree36e3539a29587455f952371c8825b10f02055d55
parentd2cff164cddb142238b6e37faefdbd3c9d2466ab
st/mesa: init hash keys with memset(), not designated initializers

Since the compiler may not zero-out padding in the object.
Add a couple comments about this to prevent misunderstandings in
the future.

Fixes: 67d96816ff5 ("st/mesa: move, clean-up shader variant key decls/inits")
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/mesa/state_tracker/st_atom_shader.c
src/mesa/state_tracker/st_program.c