freedreno/ir3: Reuse glsl_get_sampler_dim_coordinate_components() in tex_info.
authorEric Anholt <eric@anholt.net>
Wed, 5 Feb 2020 22:43:35 +0000 (14:43 -0800)
committerMarge Bot <eric+marge@anholt.net>
Mon, 24 Feb 2020 18:25:02 +0000 (18:25 +0000)
commit1b7de2d6b857cd4f3dd45bbcdf135f70548b1935
tree5c21629f5d3414426967e48b1dba8d0540f5bfa3
parentd37c6ebd3ce8e20adb57001629f21ac09bee0679
freedreno/ir3: Reuse glsl_get_sampler_dim_coordinate_components() in tex_info.

Now that we have access to the interior switch statement not going through
the txs special case for coord_components, we can just use it.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3728>
src/freedreno/ir3/ir3_compiler_nir.c