mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 07:58:07 +02:00
glsl: fix record type detection in explicit location assign
Check current_var directly instead of using the passed in record_type. This fixes following failing CTS test: ES31-CTS.explicit_uniform_location.uniform-loc-types-structs No Piglit regressions. Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Marta Lofstedt <marta.lofstedt@intel.com> Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
This commit is contained in:
parent
1f48ea1193
commit
a59c1adcc6
1 changed files with 1 additions and 1 deletions
|
|
@ -763,7 +763,7 @@ private:
|
|||
/* Assign explicit locations. */
|
||||
if (current_var->data.explicit_location) {
|
||||
/* Set sequential locations for struct fields. */
|
||||
if (record_type != NULL) {
|
||||
if (current_var->type->without_array()->is_record()) {
|
||||
const unsigned entries = MAX2(1, this->uniforms[id].array_elements);
|
||||
this->uniforms[id].remap_location =
|
||||
this->explicit_location + field_counter;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue