blob: 10e1e269e8ca88d430bd3d4867149f0d4e797436 (
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
#ifndef NOUVEAU_PIPE_WINSYS_H
#define NOUVEAU_PIPE_WINSYS_H
#include "pipe/internal/p_winsys_screen.h"
#include "pipe/p_context.h"
#include "nouveau/nouveau_winsys.h"
#include "nouveau_device.h"
struct nouveau_pipe_buffer {
struct pipe_buffer base;
struct nouveau_bo *bo;
};
static INLINE struct nouveau_pipe_buffer *
nouveau_pipe_buffer(struct pipe_buffer *buf)
{
return (struct nouveau_pipe_buffer *)buf;
}
struct nouveau_pipe_winsys {
struct pipe_winsys base;
struct pipe_screen *pscreen;
struct nouveau_channel *channel;
uint32_t next_handle;
unsigned nr_pctx;
struct pipe_context **pctx;
};
static INLINE struct nouveau_pipe_winsys *
nouveau_pipe_winsys(struct pipe_winsys *ws)
{
return (struct nouveau_pipe_winsys *)ws;
}
static INLINE struct nouveau_pipe_winsys *
nouveau_screen(struct pipe_screen *pscreen)
{
return nouveau_pipe_winsys(pscreen->winsys);
}
struct pipe_winsys *
nouveau_pipe_winsys_new(struct nouveau_device *);
struct nouveau_winsys *
nouveau_winsys_new(struct pipe_winsys *ws);
#endif
|