spirv: Add more to_string helpers
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Wed, 10 Apr 2019 17:04:05 +0000 (10:04 -0700)
committerCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Tue, 16 Apr 2019 18:11:10 +0000 (11:11 -0700)
commit0ccfe741b106efea2f2c5d526d50f4bce61d701e
treee46ef0913046d8f61ae95550fb58d8f93775695b
parent583a4d9a2719714ccd384931fb181aa2532ee316
spirv: Add more to_string helpers

Also, use a set to identify repeated values.  The previous arrangement
worked when the repetitions were one after another, but in some of the
new cases they are not.

Reviewed-by: Karol Herbst <kherbst@redhat.com>
src/compiler/spirv/spirv_info.h
src/compiler/spirv/spirv_info_c.py