mesa/src/loader
James Jones b2252de03e loader: Handle failure to load DRI driver library
I factored out the chunk of loader code that dlopen()s
libraries from the rest of the DRI driver loader function
in this commit:

  commit bc343154f8
  Author: James Jones <jajones@nvidia.com>
  Date:   Thu Apr 22 23:17:08 2021 -0700

  loader: Factor out driver library loading code

However, I failed to adjust the DRI loader function that
now uses the new helper function to handle the case where
the requested DRI library is not found.

This change restores the prior behavior, and also ensures
loader_open_driver() consistently returns NULL in the
out_driver_handle parameter on failure.

Fixes: bc343154f8 ("loader: Factor out driver library loading code")
Signed-off-by: James Jones <jajones@nvidia.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11807>
2021-07-13 07:36:17 +00:00
..
loader.c loader: Handle failure to load DRI driver library 2021-07-13 07:36:17 +00:00
loader.h loader: Factor out driver library loading code 2021-07-06 16:57:59 +00:00
loader_dri3_helper.c loader/dri3: Don't churn through xfixes regions in SwapBuffers 2021-06-24 03:18:06 +00:00
loader_dri3_helper.h loader/dri3: Don't churn through xfixes regions in SwapBuffers 2021-06-24 03:18:06 +00:00
loader_dri_helper.c dri: don't call modifier interfaces when modifiers_count is 0 2021-05-21 08:20:58 +00:00
loader_dri_helper.h dri: add loader_dri_create_image helper 2021-05-19 16:54:19 +00:00
meson.build meson: Make prefer-{crocus,iris} always take effect 2021-07-02 19:18:42 +00:00
pci_id_driver_map.c loader: s/int/bool/ for predicate result 2019-10-07 21:30:16 +01:00
pci_id_driver_map.h crocus: Make the driver loader use PCI IDs for crocus 2021-07-03 06:34:33 +02:00