5 #include "pipe/p_compiler.h"
7 #include "winsys_handle.h"
10 struct pipe_screen_config
;
14 struct drm_driver_descriptor
17 * Identifying prefix/suffix of the binary, used by the pipe-loader.
19 const char *driver_name
;
22 * Pointer to the XML string describing driver-specific driconf options.
23 * Use DRI_CONF_* macros to create the string.
25 const char **driconf_xml
;
28 * Create a pipe srcreen.
30 * This function does any wrapping of the screen.
31 * For example wrapping trace or rbug debugging drivers around it.
33 struct pipe_screen
* (*create_screen
)(int drm_fd
,
34 const struct pipe_screen_config
*config
);
37 extern const struct drm_driver_descriptor driver_descriptor
;
40 * Instantiate a drm_driver_descriptor struct.
42 #define DRM_DRIVER_DESCRIPTOR(driver_name_str, driconf, func) \
43 const struct drm_driver_descriptor driver_descriptor = { \
44 .driver_name = driver_name_str, \
45 .driconf_xml = driconf, \
46 .create_screen = func, \