radv: don't crash if cache is disabled.
authorDave Airlie <airlied@redhat.com>
Thu, 12 Oct 2017 04:24:41 +0000 (14:24 +1000)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 12 Oct 2017 12:14:43 +0000 (14:14 +0200)
commit6049fa454e4752a527cb8e13779082b27adcfb97
tree5b1432551d563afc7019d3c241932b0ca5dd0de8
parent4f42ea4dcfd23a772ec6ea211b696e9b4b521ac7
radv: don't crash if cache is disabled.

If you set MESA_GLSL_CACHE_DISABLE, radv crashed.

Fixes: fd24be134f (radv: make use of on-disk cache)
Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/amd/vulkan/radv_pipeline_cache.c