Skip to content

gbm: let gbm_format_to_dri_format return -1 when no dri format matched

Jianfeng Liu requested to merge amazingfate/mesa:gbm_dri_none into main

What does this MR do and why?

gbm: let gbm_format_to_dri_format return -1 when no dri format matched

Since https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27709,
__DRI_IMAGE_FORMAT_NONE is changed to 0 and if it is matched,
gbm_format_to_dri_format will return 0, which is treated as no dri
format matches the gbm format. So I let this function return -1 when no
dri format matches.

This change will make
https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23214 work
again.

Signed-off-by: amazingfate <liujianfeng1994@gmail.com>

Merge request reports

Loading