aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys/nouveau/drm/nouveau_drm_winsys.h
blob: ae3ab17d743bac5904a589046e943ab45f23dfee (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
26
27
28
29
30
#ifndef __NOUVEAU_DRM_WINSYS_H__
#define __NOUVEAU_DRM_WINSYS_H__

#include "state_tracker/drm_api.h"

#include "util/u_simple_screen.h"

#include "nouveau_dri.h"

struct nouveau_winsys {
	struct pipe_winsys base;

	struct pipe_screen *pscreen;

	struct pipe_surface *front;
};

static INLINE struct nouveau_winsys *
nouveau_winsys(struct pipe_winsys *ws)
{
	return (struct nouveau_winsys *)ws;
}

static INLINE struct nouveau_winsys *
nouveau_winsys_screen(struct pipe_screen *pscreen)
{
	return nouveau_winsys(pscreen->winsys);
}

#endif