spirv: avoid allocating memory twice
authorThomas H.P. Andersen <phomes@gmail.com>
Tue, 6 Sep 2022 21:25:43 +0000 (23:25 +0200)
committerMarge Bot <emma+marge@anholt.net>
Sun, 11 Sep 2022 22:13:09 +0000 (22:13 +0000)
commit6d19b34571891a20e45fe32a4a55c4cd4580339b
tree0c058364c309a6da6bb93e9852a53dea373da141
parentc93b72d0455f1487fa3fb65a6691ff44a2fbcd35
spirv: avoid allocating memory twice

ptr_type was allocated twice. This drops the second allocation.

It has been like this since the introduction of the code in
b778e7bd6c1d82ce739d7e278de00ee600532cd5

Reviewed-by: Zoltán Böszörményi <zboszor@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18450>
src/compiler/spirv/vtn_variables.c