targets: Use a macro to reduce cut and paste in driver setup.
authorEric Anholt <eric@anholt.net>
Fri, 3 Feb 2017 18:54:12 +0000 (10:54 -0800)
committerEric Anholt <eric@anholt.net>
Mon, 6 Feb 2017 20:44:06 +0000 (12:44 -0800)
commit61bb1a9795e80501e9000d423d5cc5310b77e65b
treed53cffb7f80a8d69d7bb79f4f6cf6ed0d1b887a7
parent13a28ff2368ffdcaafee3cb6c45df77f75b02aea
targets: Use a macro to reduce cut and paste in driver setup.

All the replicated prototypes/function bodies obfuscated the interesting
logic of the file: the mapping from driver enable macros to entrypoints we
expose, and the way that the swrast entrypoints are special compared to
the DRM entrypoints.

Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/targets/dri/target.c