mesa: update pipeline when re-linking a program in use
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Wed, 1 Apr 2020 12:23:53 +0000 (14:23 +0200)
committerMarge Bot <eric+marge@anholt.net>
Fri, 3 Apr 2020 13:42:43 +0000 (13:42 +0000)
commit61566f2ae18c7d4906f24150965aea809b7680f9
treea6764d2f173d1e880220a24a3f916295c2a3e82a
parent1288ac7632b31a20497a0e75f374f66ce3d5bc3c
mesa: update pipeline when re-linking a program in use

Updating was only done for bound program, so add the
same logic for existing pipelines.

This fixes piglit test arb_shader_storage_buffer_object-issue1258.
It might also help the following issue:
  https://gitlab.freedesktop.org/mesa/mesa/-/issues/1258

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Acked-by: Marek Olšák <marek.olsak@amd.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4404>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4404>
src/mesa/main/shaderapi.c