glsl: reset next_image_index count for each shader stage
authorTimothy Arceri <tarceri@itsqueeze.com>
Sun, 9 Feb 2020 22:19:44 +0000 (09:19 +1100)
committerMarge Bot <eric+marge@anholt.net>
Fri, 28 Feb 2020 23:48:46 +0000 (23:48 +0000)
commitef47069cc30e0a3337fcb6ff0c740e1bc50879c5
treee4c57068261d6ddc4d494640516636a69f798496
parente0aa0a839f9c168784a1f50013c83877cc876094
glsl: reset next_image_index count for each shader stage

This fixes the image index calculation in the nir linker. We need
to reset the counter to 0 for each shader stage not each program.

Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3992>
src/compiler/glsl/gl_nir_link_uniforms.c