spirv: Fix matrix parameters in function calls.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sun, 6 Jan 2019 11:34:24 +0000 (12:34 +0100)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Tue, 8 Jan 2019 00:30:03 +0000 (01:30 +0100)
commit70ed049cc6a682fba084cf57e06728fa5934881b
tree1d51c6fdfc7e3458014ef707a17fb33693d0fa67
parent3cc940277a45285d9932ed62398d7a54d2afffb8
spirv: Fix matrix parameters in function calls.

They can be handled exactly the same as arrays, we just need to handle
the base type correctly in the switches.

Fixes: a45b6fb4524 "spirv: Pass SSA values through functions"
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=109204
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/compiler/spirv/vtn_cfg.c