gallium/dri: fix dri2_from_names
authorJulia Tatz <tatz.j@northeastern.edu>
Thu, 10 Aug 2023 02:35:56 +0000 (22:35 -0400)
committerMarge Bot <emma+marge@anholt.net>
Tue, 15 Aug 2023 23:36:24 +0000 (23:36 +0000)
commitc4133a110def6a20dbff9ffc4531108475420fcc
treed9e06e16160dfa76827f295601d302c8b0168a0a
parentf7e39c6f8545540ed573a6b1036710b55f7d6778
gallium/dri: fix dri2_from_names

`createImageFromNames` uses fourcc, not dri_image_formats

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8547
Fixes: 433ca3127a3 ("st/dri: replace format conversion functions with single mapping table")
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24597>
src/gallium/frontends/dri/dri2.c