Commit c1e5ae09 authored by Mike Blumenkrantz's avatar Mike Blumenkrantz 🏋
Browse files

glsl/types: support atomic uint types in glsl_get_stdXYZ_size() funcs

this was missing somehow
parent b4ae9e07
Pipeline #239107 waiting for manual action with stages
in 14 seconds
...@@ -1828,6 +1828,9 @@ glsl_type::std140_base_alignment(bool row_major) const ...@@ -1828,6 +1828,9 @@ glsl_type::std140_base_alignment(bool row_major) const
} }
} }
if (this->is_atomic_uint())
return this->atomic_size();
/* (4) If the member is an array of scalars or vectors, the base alignment /* (4) If the member is an array of scalars or vectors, the base alignment
* and array stride are set to match the base alignment of a single * and array stride are set to match the base alignment of a single
* array element, according to rules (1), (2), and (3), and rounded up * array element, according to rules (1), (2), and (3), and rounded up
...@@ -2162,6 +2165,9 @@ glsl_type::std430_base_alignment(bool row_major) const ...@@ -2162,6 +2165,9 @@ glsl_type::std430_base_alignment(bool row_major) const
} }
} }
if (this->is_atomic_uint())
return this->atomic_size();
/* OpenGL 4.30 spec, section 7.6.2.2 "Standard Uniform Block Layout": /* OpenGL 4.30 spec, section 7.6.2.2 "Standard Uniform Block Layout":
* *
* "When using the std430 storage layout, shader storage blocks will be * "When using the std430 storage layout, shader storage blocks will be
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment