glsl: move calculate_subroutine_compat() to shared linker code
authorTimothy Arceri <tarceri@itsqueeze.com>
Tue, 7 Jan 2020 02:43:05 +0000 (13:43 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Fri, 10 Jan 2020 00:41:20 +0000 (00:41 +0000)
commit726e8f24c6eefe5b2d77fe0dbfd9d7c89fc224f4
tree3cfaea34315a1ecfacb6a5fc4dfb8a623bc54736
parentc60d0bd92f1a141d48e8c3db66b3b257ee890c23
glsl: move calculate_subroutine_compat() to shared linker code

We will make use of this in the nir linker in the following patch.

Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/compiler/glsl/linker.cpp
src/compiler/glsl/linker_util.cpp
src/compiler/glsl/linker_util.h