symbol_table:fix mesa symbol table return scope error
authorcheyang <cheyang@bytedance.com>
Mon, 14 Dec 2020 11:55:28 +0000 (19:55 +0800)
committerMarge Bot <eric+marge@anholt.net>
Thu, 17 Dec 2020 04:48:27 +0000 (04:48 +0000)
commite6a66201a7ada69d93c9c9eb2112b20f87695754
tree45d5af1088bcb019feaa97debf1a9d5cef1db926
parent193888fd7578fed0afd8e8f22a346dc127952da7
symbol_table:fix mesa symbol table return scope error

According to the comment of this function,return a non-negative
number for the number of scopes between the current scope and
the scope where a symbol was defined.

Signed-off-by: cheyang <cheyang@bytedance.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8084>
src/mesa/program/symbol_table.c