projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
nir/glsl: Add an explicit_alignment field to glsl_type
[mesa.git]
/
src
/
compiler
/
nir_types.cpp
diff --git
a/src/compiler/nir_types.cpp
b/src/compiler/nir_types.cpp
index 9b4f9c5b0aacb6d1eba0dde92359ca28e99d2fee..1fff15c7cd58d480d5792c30542267804e51515a 100644
(file)
--- a/
src/compiler/nir_types.cpp
+++ b/
src/compiler/nir_types.cpp
@@
-860,6
+860,12
@@
glsl_get_explicit_size(const struct glsl_type *type, bool align_to_stride)
return type->explicit_size(align_to_stride);
}
+unsigned
+glsl_get_explicit_alignment(const struct glsl_type *type)
+{
+ return type->explicit_alignment;
+}
+
bool
glsl_type_is_packed(const struct glsl_type *type)
{