nir/serialize: fix serializing functions with no implementations.
authorDave Airlie <airlied@redhat.com>
Mon, 18 Nov 2019 22:19:34 +0000 (08:19 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 18 Nov 2019 23:30:32 +0000 (09:30 +1000)
commit1468a4f1f3a2e4c98c5d857a636233c356922807
tree687f84eacb29459144bf6add511f1af4f3efabea
parent0fd6b8aa987dcdfbea497f333780b6ccba8a1517
nir/serialize: fix serializing functions with no implementations.

Store a flag stating if there was an implmentation, and use
fxn->impl as a temporary flag between deserializsation stages.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/nir/nir_serialize.c