st/dri: Move dri2_format_mapping table and it's accessors from dri2.c to dri_helpers.c
authorJon Turney <jon.turney@dronecode.org.uk>
Fri, 2 Aug 2019 12:42:48 +0000 (13:42 +0100)
committerJon Turney <jon.turney@dronecode.org.uk>
Tue, 6 Aug 2019 12:21:56 +0000 (12:21 +0000)
commit84fae8e649b5f9e22c7305f72fba01352e0ea2b2
treeecc943e8ba1cccd56cab1a025d14571c86b638b4
parentb514f411837be99b22d4df3a9b8e881a2021d087
st/dri: Move dri2_format_mapping table and it's accessors from dri2.c to dri_helpers.c

8af1990a exposed dri2_get_mapping_by_fourcc() in dri_helpers.h, so it
could be used by dri_get_egl_image(), but didn't move it.  This breaks
the build in the with_dri=false case (e.g. when building for a target
which doesn't have libdrm, so swrast is only dri driver built)
src/gallium/state_trackers/dri/dri2.c
src/gallium/state_trackers/dri/dri_helpers.c
src/gallium/state_trackers/dri/dri_helpers.h