glsl: Factor out the sampler dim coordinate components switch statement.
authorEric Anholt <eric@anholt.net>
Wed, 5 Feb 2020 22:36:01 +0000 (14:36 -0800)
committerMarge Bot <eric+marge@anholt.net>
Mon, 24 Feb 2020 18:25:02 +0000 (18:25 +0000)
commit5072719e66b0f97a572f36e86bd5396ed2ebc915
treeee945c454066ac098fb5c56b35fe608631f4c0bd
parent12cf484d025e3ed980dbbd8d65f2f9b95c6388db
glsl: Factor out the sampler dim coordinate components switch statement.

I want to reuse this in NIR image intrinsics in backends, which just have
dim/is_array.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3728>
src/compiler/glsl_types.cpp
src/compiler/glsl_types.h