spirv: reduce array size in vtn_handle_constant
authorKarol Herbst <kherbst@redhat.com>
Wed, 10 Apr 2019 14:46:50 +0000 (16:46 +0200)
committerKarol Herbst <kherbst@redhat.com>
Sun, 14 Apr 2019 20:25:56 +0000 (22:25 +0200)
commit73d883037d170ab8dcade3e0cfcf9f33c8ed6557
treefcc4bff78cb4c1cd5a0a34df819afc87551af5f0
parente72beacb95f072051576c196ba68c5819efa6adb
spirv: reduce array size in vtn_handle_constant

we already assert above that there are no more than 3 sources, so it
doesn't make sense to use an array of 4 sources

Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/spirv/spirv_to_nir.c