st/dri: simplify dri_get_egl_image by reusing dri2_format_table
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Thu, 6 Jun 2019 23:47:23 +0000 (19:47 -0400)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 31 Jul 2019 16:50:06 +0000 (09:50 -0700)
commitc47af8b95f26bd83efe322ff0baa52263fb8625e
tree8ae920087dbefb8edde7bbfd4297a0d26d72b4ad
parent7404833c2e3227b61f53ad93b0e3a1a4d545c05f
st/dri: simplify dri_get_egl_image by reusing dri2_format_table

this makes dri2_get_mapping_by_fourcc accessible from dri_helpers.h
and does a direct lookup on the fourcc id to match the pipe format

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/gallium/state_trackers/dri/dri2.c
src/gallium/state_trackers/dri/dri_helpers.h
src/gallium/state_trackers/dri/dri_screen.c