gallivm: skip operations if we have a cached object.
authorDave Airlie <airlied@redhat.com>
Fri, 15 May 2020 00:11:56 +0000 (10:11 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 10 Jun 2020 20:05:40 +0000 (06:05 +1000)
commitb15ecb1717f695cccbce3f2faece665fdb1074a1
tree51ce4eaf3b16f91c199c7aab1f570f6bea64ff3b
parent7b7c02d161df2f09fa06b8b0b42caf869a326dc9
gallivm: skip operations if we have a cached object.

If the object is loaded from the cache, a bunch of gallivm/llvm
interactions can be skipped.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5049>
src/gallium/auxiliary/gallivm/lp_bld_init.c