[Mesa-dev] [PATCH 21/68] glsl: don't support caching single vs or fs shaders
Timothy Arceri
timothy.arceri at collabora.com
Wed Jun 1 06:23:02 UTC 2016
We can add support for this later for now skip these programs.
---
src/compiler/glsl/shader_cache.cpp | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/compiler/glsl/shader_cache.cpp b/src/compiler/glsl/shader_cache.cpp
index 7e6e9ca..e7f1a21 100644
--- a/src/compiler/glsl/shader_cache.cpp
+++ b/src/compiler/glsl/shader_cache.cpp
@@ -463,6 +463,11 @@ shader_cache_read_program_metadata(struct gl_context *ctx,
if (!cache)
return false;
+ if (prog->NumShaders == 1) {
+ compile_shaders(ctx, prog);
+ return false;
+ }
+
for (unsigned i = 0; i < prog->NumShaders; i++) {
if (prog->Shaders[i]->Stage != MESA_SHADER_VERTEX &&
prog->Shaders[i]->Stage != MESA_SHADER_FRAGMENT) {
--
2.5.5
More information about the mesa-dev
mailing list