summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/shader_cache.cpp
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2017-04-21 10:28:58 +0200
committerSamuel Pitoiset <[email protected]>2017-04-21 19:33:34 +0200
commitcd78ab55d0afefa501929366205443e15ed85495 (patch)
tree3be2d82e0d650525d1a6685bd46a821e8199c6e7 /src/compiler/glsl/shader_cache.cpp
parent0c8898dc34b1b8efc12e7491c303249bd081253d (diff)
glsl: make use of glsl_type::is_interface()
Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Samuel Iglesias Gonsálvez <[email protected]> Reviewed-by: Edward O'Callaghan <[email protected]>
Diffstat (limited to 'src/compiler/glsl/shader_cache.cpp')
-rw-r--r--src/compiler/glsl/shader_cache.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/glsl/shader_cache.cpp b/src/compiler/glsl/shader_cache.cpp
index 19d69c36fc4..800d3a29133 100644
--- a/src/compiler/glsl/shader_cache.cpp
+++ b/src/compiler/glsl/shader_cache.cpp
@@ -129,7 +129,7 @@ encode_type_to_blob(struct blob *blob, const glsl_type *type)
blob_write_string(blob, type->fields.structure[i].name);
}
- if (type->base_type == GLSL_TYPE_INTERFACE) {
+ if (type->is_interface()) {
blob_write_uint32(blob, type->interface_packing);
blob_write_uint32(blob, type->interface_row_major);
}