Mesa (master): compiler/types: Support [de]serializing void types
Jordan Justen
jljusten at kemper.freedesktop.org
Wed Oct 25 19:57:47 UTC 2017
Module: Mesa
Branch: master
Commit: 23327af91c3ccb82be3a5de3ed1b2b3f49168d75
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=23327af91c3ccb82be3a5de3ed1b2b3f49168d75
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date: Thu Sep 14 16:49:14 2017 -0700
compiler/types: Support [de]serializing void types
Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
Reviewed-by: Jordan Justen <jordan.l.justen at intel.com>
---
src/compiler/glsl_types.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/compiler/glsl_types.cpp b/src/compiler/glsl_types.cpp
index a7fc7ff7f6..704b63c5cf 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!");
More information about the mesa-commit
mailing list