diff --git a/.pick_status.json b/.pick_status.json index 2bfaf3df432..43f2e7a8dd7 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -436,7 +436,7 @@ "description": "compiler: Allow the explicit_stride of aoa types to be zero", "nominated": true, "nomination_type": 0, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": null }, diff --git a/src/compiler/glsl_types.cpp b/src/compiler/glsl_types.cpp index df11bf08ece..874b503cf40 100644 --- a/src/compiler/glsl_types.cpp +++ b/src/compiler/glsl_types.cpp @@ -2495,7 +2495,7 @@ glsl_type::explicit_size(bool align_to_stride) const assert(this->length > 0); unsigned elem_size = align_to_stride ? this->explicit_stride : this->fields.array->explicit_size(); - assert(this->explicit_stride >= elem_size); + assert(this->explicit_stride == 0 || this->explicit_stride >= elem_size); return this->explicit_stride * (this->length - 1) + elem_size; } else if (this->is_matrix()) {