glsl: move interpolation_string() to linker_util
authorTimothy Arceri <tarceri@itsqueeze.com>
Mon, 25 Sep 2023 00:04:24 +0000 (10:04 +1000)
committerMarge Bot <emma+marge@anholt.net>
Thu, 28 Sep 2023 13:55:16 +0000 (13:55 +0000)
commit78b9f1053faeb324d0f51588ddd12537d97c5b55
treeb87a98ac16146c7a163837391067c5aeb845c657
parent337c32cb3ad27b4b0a9ba787b9d2b8f843acd40d
glsl: move interpolation_string() to linker_util

Moving it here allows us to use in in the NIR linker too.

Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25371>
src/compiler/glsl/ast_to_hir.cpp
src/compiler/glsl/ir.cpp
src/compiler/glsl/ir.h
src/compiler/glsl/linker_util.cpp
src/compiler/glsl/linker_util.h