egl: fix error string for dri2_create_image_dma_buf()
authorSimon Ser <contact@emersion.fr>
Wed, 19 Oct 2022 08:27:01 +0000 (10:27 +0200)
committerMarge Bot <emma+marge@anholt.net>
Fri, 21 Oct 2022 14:57:25 +0000 (14:57 +0000)
commit4c080cb8e50cde3f41120f4bd85177bcb47f3f56
tree50a4e9b06586e5cd1c8ea0ce6114519142031087
parente2d67765fafd2931569415dacbbde83b05d6a3f2
egl: fix error string for dri2_create_image_dma_buf()

Using dri2_create_image_khr_texture_error() here prints an error
like so:

    command: eglCreateImageKHR, error: EGL_BAD_ALLOC (0x3003), message: "dri2_create_image_khr_texture"

This is confusing, because dri2_create_image_khr_texture() is
unrelated to this error.

Instead, print a more accurate error manually.

Signed-off-by: Simon Ser <contact@emersion.fr>
Reviewed-by: Eric Engestrom <eric@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19156>
src/egl/drivers/dri2/egl_dri2.c