aboutsummaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/shader_cache.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/glsl/shader_cache.cpp')
-rw-r--r--src/compiler/glsl/shader_cache.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/glsl/shader_cache.cpp b/src/compiler/glsl/shader_cache.cpp
index cc63c1c3afd..57e1d24fcbf 100644
--- a/src/compiler/glsl/shader_cache.cpp
+++ b/src/compiler/glsl/shader_cache.cpp
@@ -985,7 +985,7 @@ write_shader_parameters(struct blob *metadata,
blob_write_bytes(metadata, param->StateIndexes,
sizeof(param->StateIndexes));
- i += (param->Size + 3) / 4;
+ i++;
}
blob_write_bytes(metadata, params->ParameterValues,
@@ -1014,7 +1014,7 @@ read_shader_parameters(struct blob_reader *metadata,
_mesa_add_parameter(params, type, name, size, data_type,
NULL, state_indexes);
- i += (size + 3) / 4;
+ i++;
}
blob_copy_bytes(metadata, (uint8_t *) params->ParameterValues,