aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys/drm/nouveau/common/nouveau_screen.h
blob: 3e68e219d862ca74cba5d550c47c35f7a79416b5 (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
#ifndef __NOUVEAU_SCREEN_H__
#define __NOUVEAU_SCREEN_H__

#include <stdint.h>

struct nouveau_device;
struct nouveau_dri;

struct nouveau_screen {
	struct nouveau_device *device;

	uint32_t front_offset;
	uint32_t front_pitch;
	uint32_t front_cpp;
	uint32_t front_height;

	void *nvc;
};

int
nouveau_screen_init(struct nouveau_dri *nv_dri, int dev_fd,
                    struct nouveau_screen *nv_screen);

void
nouveau_screen_cleanup(struct nouveau_screen *nv_screen);

#endif