freedreno: Reuse glsl_get_sampler_coordinate_components().
authorEric Anholt <eric@anholt.net>
Wed, 15 May 2019 00:18:40 +0000 (17:18 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 4 Jun 2019 23:44:24 +0000 (16:44 -0700)
commit8843b90cacc3546c6cb4a6e49daec4117649f1bf
tree6f1da2789fb6cee66788bd61557ce118f9eb6593
parentfb872748ec63f26213ca2021846c4c3a1c6ab1a8
freedreno: Reuse glsl_get_sampler_coordinate_components().

We have the GLSL type, so we can just ask it how many coordinates there
are.  The GLSL function already has Vulkan cases that we'd probably want
eventually.

Reviewed-by: Rob Clark <robdclark@gmail.com>
src/freedreno/ir3/ir3_image.c