compiler/types: Support [de]serializing void types

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
This commit is contained in:
Jason Ekstrand 2017-09-14 16:49:14 -07:00 committed by Jordan Justen
parent c1b84256cc
commit 23327af91c
1 changed files with 3 additions and 0 deletions

View File

@ -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!");