spirv_to_nir: Reuse glsl_sampler_dim_coordinate_components().
authorEric Anholt <eric@anholt.net>
Wed, 5 Feb 2020 22:41:14 +0000 (14:41 -0800)
committerMarge Bot <eric+marge@anholt.net>
Mon, 24 Feb 2020 18:25:02 +0000 (18:25 +0000)
commitd37c6ebd3ce8e20adb57001629f21ac09bee0679
treede2380728a6485e38ee9e75b8eb1f7515ec374b6
parent5072719e66b0f97a572f36e86bd5396ed2ebc915
spirv_to_nir: Reuse glsl_sampler_dim_coordinate_components().

We just needed to move the SUBPASS_MS case in, and the rest of the cases
match up.

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/spirv/spirv_to_nir.c