summaryrefslogtreecommitdiff
path: root/lib/mesa/src/gallium/include/frontend/sw_driver.h
blob: 6223ff9f0eff19637404367a3a3983d4f9374e4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25

#ifndef _SW_DRIVER_H_
#define _SW_DRIVER_H_

#include "pipe/p_compiler.h"

struct pipe_screen;
struct sw_winsys;
struct drisw_loader_funcs;

struct sw_driver_descriptor
{
   struct pipe_screen *(*create_screen)(struct sw_winsys *ws, const struct pipe_screen_config *config, bool sw_vk);
   struct {
       const char * const name;
       union {
         struct sw_winsys *(*create_winsys)();
         struct sw_winsys *(*create_winsys_wrapped)(struct pipe_screen *screen);
         struct sw_winsys *(*create_winsys_dri)(const struct drisw_loader_funcs *lf);
         struct sw_winsys *(*create_winsys_kms_dri)(int fd);
       };
   } winsys[];
};

#endif