egl/dri2: Don't look up image extension twice
authorDaniel Stone <daniels@collabora.com>
Wed, 26 Jul 2023 23:48:54 +0000 (00:48 +0100)
committerMarge Bot <emma+marge@anholt.net>
Fri, 28 Jul 2023 12:25:19 +0000 (12:25 +0000)
commit08bfc7395eb0fe582b8ecc76434300ccd67f648c
treedf2bcb6151f38841f2f41b649f67eb5c10cd79ad
parent00aa095d53e49d5cacc9878fe4df4820c83fe3f4
egl/dri2: Don't look up image extension twice

We already look up the image driver extension inside
dri2_core_extensions, so don't do it again in the optional extensions -
just do it in the swrast path so we have it covered for both.

Signed-off-by: Daniel Stone <daniels@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24347>
src/egl/drivers/dri2/egl_dri2.c