From 3e789026cae21e56d07e21773bd6b34f32e31b4d Mon Sep 17 00:00:00 2001 From: Timothy Arceri Date: Mon, 27 Nov 2017 16:25:11 +1100 Subject: st/glsl_to_tgsi: make use of driver_cache_blob with the disk cache MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit driver_cache_blob was introduced with the i965 disk cache, it allows us to simplify the cache a little and possibly offers some minor speed improvements since we load the GLSL metadata and TGSI from disk in one pass. Using driver_cache_blob should also make it straight forward to implement binary support for ARB_get_program_binary in gallium. Reviewed-by: Marek Olšák --- src/compiler/glsl/shader_cache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/compiler') diff --git a/src/compiler/glsl/shader_cache.cpp b/src/compiler/glsl/shader_cache.cpp index da1c72d42da..cc63c1c3afd 100644 --- a/src/compiler/glsl/shader_cache.cpp +++ b/src/compiler/glsl/shader_cache.cpp @@ -1299,7 +1299,7 @@ shader_cache_read_program_metadata(struct gl_context *ctx, return false; struct disk_cache *cache = ctx->Cache; - if (!cache || prog->data->skip_cache) + if (!cache) return false; /* Include bindings when creating sha1. These bindings change the resulting -- cgit v1.2.3