[Mesa-dev] [PATCH 24/65] glsl: cache subroutine uniform storage value
Timothy Arceri
timothy.arceri at collabora.com
Fri Apr 29 13:33:23 UTC 2016
---
src/compiler/glsl/shader_cache.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/compiler/glsl/shader_cache.cpp b/src/compiler/glsl/shader_cache.cpp
index daa9056..fae90ae 100644
--- a/src/compiler/glsl/shader_cache.cpp
+++ b/src/compiler/glsl/shader_cache.cpp
@@ -151,6 +151,8 @@ write_uniforms(struct blob *metadata, struct gl_shader_program *prog)
blob_write_uint32(metadata, prog->UniformStorage[i].matrix_stride);
blob_write_uint32(metadata, prog->UniformStorage[i].row_major);
blob_write_uint32(metadata,
+ prog->UniformStorage[i].num_compatible_subroutines);
+ blob_write_uint32(metadata,
prog->UniformStorage[i].top_level_array_size);
blob_write_uint32(metadata,
prog->UniformStorage[i].top_level_array_stride);
@@ -191,6 +193,7 @@ read_uniforms(struct blob_reader *metadata, struct gl_shader_program *prog)
uniforms[i].array_stride = blob_read_uint32(metadata);
uniforms[i].matrix_stride = blob_read_uint32(metadata);
uniforms[i].row_major = blob_read_uint32(metadata);
+ uniforms[i].num_compatible_subroutines = blob_read_uint32(metadata);
uniforms[i].top_level_array_size = blob_read_uint32(metadata);
uniforms[i].top_level_array_stride = blob_read_uint32(metadata);
uniforms[i].type = decode_type_from_blob(metadata);
--
2.5.5
More information about the mesa-dev
mailing list