gallium/indices: introduce u_primconvert_config
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Mon, 22 Jun 2020 13:05:17 +0000 (15:05 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 18 Aug 2020 12:12:27 +0000 (12:12 +0000)
commit21952f1400aff00f3a04e95e9f960318e1853cb8
tree744ef52515a64c5edb9a7d67ab41171623e2484d
parentc2e9cd3f773863f5745a7eea1f6f9cec11f84a8a
gallium/indices: introduce u_primconvert_config

This struct allows us to pass the configuration as a struct, which can
more easily be extended to take more arguemnts as long as we're careful
about zero-initialization.

We keep the old create-function, but implement it as a wrapper on top so
we don't have to update all existing call-sites right now.

Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Reviewed-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5976>
src/gallium/auxiliary/indices/u_primconvert.c
src/gallium/auxiliary/indices/u_primconvert.h