diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp index dcbdb096deb..45f8067fa90 100644 --- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp +++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp @@ -6686,7 +6686,9 @@ st_translate_program( if (proginfo->DualSlotInputs != 0) { /* adjust attrToIndex to include placeholder for second - * part of a double attribute + * part of a double attribute. + * Following code is basically matching behavior of + * util_lower_uint64_vertex_elements */ numInputs = 0; for (unsigned attr = 0; attr < VERT_ATTRIB_MAX; attr++) {