mesa: don't always set _NEW_PROGRAM when linking
authorTimothy Arceri <timothy.arceri@collabora.com>
Mon, 9 Jan 2017 05:13:27 +0000 (16:13 +1100)
committerTimothy Arceri <timothy.arceri@collabora.com>
Thu, 19 Jan 2017 04:55:02 +0000 (15:55 +1100)
commit3fe8d04a6d69fad98228be647ba9b250ea0e3a8b
tree01c058d0d19512c1bca81ec1e9116df269d4baf8
parentaad93402c00ae90274d7abdbb64960d9ae40a0ce
mesa: don't always set _NEW_PROGRAM when linking

We only need to set it when linking was successful and the program
being linked is currently active.

The programs_in_use mask is just used as a flag for now but in
a future change we will use it to update the CurrentProgram array.

V2: make sure to flush vertices before linking (suggested by Marek)

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/main/shaderapi.c