glsl: don't lose uniform values when falling back to full compile
authorTimothy Arceri <timothy.arceri@collabora.com>
Wed, 27 Apr 2016 05:41:19 +0000 (15:41 +1000)
committerTimothy Arceri <tarceri@itsqueeze.com>
Fri, 17 Feb 2017 00:18:43 +0000 (11:18 +1100)
commit794f7326bcc3ffb7ab473d2c10a8c81ff4958167
tree1efd2f1eaae2fe03ee0d6ae05db83cb69e06224b
parent0e9991f957e296f46cfff40a94ffba0adf2a58e1
glsl: don't lose uniform values when falling back to full compile

Here we skip the recreation of uniform storage if we are relinking
after a cache miss. This is improtant because uniform values may
have already been set by the application and we don't want to reset
them.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/compiler/glsl/link_uniforms.cpp
src/mesa/main/shaderobj.c