Path: blob/21.2-virgl/src/gallium/include/frontend/drm_driver.h
4565 views
1#ifndef _DRM_DRIVER_H_2#define _DRM_DRIVER_H_34#include "pipe/p_compiler.h"56#include "winsys_handle.h"78struct pipe_screen;9struct pipe_screen_config;10struct pipe_context;11struct pipe_resource;1213struct drm_driver_descriptor14{15/**16* Identifying prefix/suffix of the binary, used by the pipe-loader.17*/18const char *driver_name;1920/**21* Optional pointer to the array of driOptionDescription describing22* driver-specific driconf options.23*/24const struct driOptionDescription *driconf;2526/* Number of entries in the driconf array. */27unsigned driconf_count;2829/**30* Create a pipe srcreen.31*32* This function does any wrapping of the screen.33* For example wrapping trace or rbug debugging drivers around it.34*/35struct pipe_screen* (*create_screen)(int drm_fd,36const struct pipe_screen_config *config);37};3839extern const struct drm_driver_descriptor driver_descriptor;4041#endif424344