loader: make image_format_to_fourcc() non-static
authorYogesh Mohanmarimuthu <yogesh.mohanmarimuthu@amd.com>
Mon, 22 Nov 2021 14:25:41 +0000 (19:55 +0530)
committerMarge Bot <emma+marge@anholt.net>
Tue, 24 Jan 2023 12:51:35 +0000 (12:51 +0000)
commit42a46f2c5f169c4f06db3a7d1e944fcf34b36e82
tree4b62107bcfe320b1e351b08360d13191fd4e81af
parent57b22f99a98182c647444b5e6a3c786cb8e7c04d
loader: make image_format_to_fourcc() non-static

the image_format_to_fourcc() function will be used from
egl/wayland hence make it non-static. Also move the function
into loader_dri_helper.c from loader_dri3_helper.c since
loader_dri3_helper library depends on xcb which will make
egl wayland depend on xcb indirectly.

v2: add loader tag to extern image_format_to_fourcc() (Marek Olšák)

V3: move image_format_to_fourcc to loader_dri_helper.c
Signed-off-by: Yogesh Mohanmarimuthu <yogesh.mohanmarimuthu@amd.com>
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13422>
src/loader/loader_dri3_helper.c
src/loader/loader_dri_helper.c
src/loader/loader_dri_helper.h