aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2017-09-14 16:49:14 -0700
committerJordan Justen <[email protected]>2017-10-25 12:36:21 -0700
commit23327af91c3ccb82be3a5de3ed1b2b3f49168d75 (patch)
tree5f5f43fafb4aa46e5d2a2de6f137ea0ac0a48087
parentc1b84256ccc443a9792893bc780bba970c0dcd4e (diff)
compiler/types: Support [de]serializing void types
Reviewed-by: Timothy Arceri <[email protected]> Reviewed-by: Jordan Justen <[email protected]>
-rw-r--r--src/compiler/glsl_types.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/compiler/glsl_types.cpp b/src/compiler/glsl_types.cpp
index a7fc7ff7f6b..704b63c5cf2 100644
--- a/src/compiler/glsl_types.cpp
+++ b/src/compiler/glsl_types.cpp
@@ -2149,6 +2149,8 @@ encode_type_to_blob(struct blob *blob, const glsl_type *type)
}
return;
case GLSL_TYPE_VOID:
+ encoding = (type->base_type << 24);
+ break;
case GLSL_TYPE_ERROR:
default:
assert(!"Cannot encode type!");
@@ -2230,6 +2232,7 @@ decode_type_from_blob(struct blob_reader *blob)
return t;
}
case GLSL_TYPE_VOID:
+ return glsl_type::void_type;
case GLSL_TYPE_ERROR:
default:
assert(!"Cannot decode type!");