spirv: Handle SpvOpDecorateId
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Mon, 22 Apr 2019 23:09:56 +0000 (16:09 -0700)
committerCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Tue, 23 Apr 2019 21:58:01 +0000 (14:58 -0700)
commit7e2684ce014c3f7813c4f0b2d8424fd588606d5f
treec587ebed8a2974fffe8530224d88152b5e849248
parent7b66d584a3c685bf70893fe5cda2432cf4fbfdfb
spirv: Handle SpvOpDecorateId

This operation decorate with an Id instead of a Literal or String.

It is used by HlslCounterBufferGOOGLE (provided by
SPV_GOOGLE_hlsl_functionality1).  Even if we don't do anything with
that decoration, we must be able to parse SPIR-V that uses it.

Fixes: 891886da2f9 "spirv: Add no-op support for VK_GOOGLE_hlsl_functionality1"
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/spirv/spirv_to_nir.c