diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2018-10-23 06:36:00 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2018-10-23 06:36:00 +0000 |
commit | b65fcab046d3a1b6b6ac315720df220925c5322e (patch) | |
tree | ff73dcc383ac0799c655ff6194cda9dacb75dde9 /lib/mesa/src/gallium/auxiliary/pipe-loader/pipe_loader_priv.h | |
parent | 18d6381c51e253e4c41c62619f80d9ce745b95c8 (diff) |
Merge Mesa 17.3.9
Mesa 18.x needs an ld with build-id for at least the intel code
Mesa 18.2 assumes linux only memfd syscalls in intel code
Tested by matthieu@, kettenis@ and myself on a variety of hardware and
architectures. ok kettenis@
Diffstat (limited to 'lib/mesa/src/gallium/auxiliary/pipe-loader/pipe_loader_priv.h')
-rw-r--r-- | lib/mesa/src/gallium/auxiliary/pipe-loader/pipe_loader_priv.h | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/lib/mesa/src/gallium/auxiliary/pipe-loader/pipe_loader_priv.h b/lib/mesa/src/gallium/auxiliary/pipe-loader/pipe_loader_priv.h index da2ca8c6e..699040d71 100644 --- a/lib/mesa/src/gallium/auxiliary/pipe-loader/pipe_loader_priv.h +++ b/lib/mesa/src/gallium/auxiliary/pipe-loader/pipe_loader_priv.h @@ -31,7 +31,8 @@ #include "pipe_loader.h" struct pipe_loader_ops { - struct pipe_screen *(*create_screen)(struct pipe_loader_device *dev); + struct pipe_screen *(*create_screen)(struct pipe_loader_device *dev, + const struct pipe_screen_config *config); const struct drm_conf_ret *(*configuration)(struct pipe_loader_device *dev, enum drm_conf conf); @@ -40,10 +41,21 @@ struct pipe_loader_ops { }; /** - * Open the pipe driver module that handles a specified device. + * Open the pipe driver module that contains the specified driver. */ struct util_dl_library * -pipe_loader_find_module(struct pipe_loader_device *dev, +pipe_loader_find_module(const char *driver_name, const char *library_paths); +/** + * Free the base device structure. + * + * Implementations of pipe_loader_ops::release must call this. + * + * (*dev)->driver_name must be freed by the caller if it was allocated on the + * heap. + */ +void +pipe_loader_base_release(struct pipe_loader_device **dev); + #endif /* PIPE_LOADER_PRIV_H */ |