aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys/i915/sw/i915_sw_winsys.h
blob: b7b43669f30674a5b4dfe8ba2c53c3f38d2af9d6 (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
53
54
55
56

#ifndef I915_SW_WINSYS_H
#define I915_SW_WINSYS_H

#include "i915/i915_winsys.h"


/*
 * Winsys
 */


struct i915_sw_winsys
{
   struct i915_winsys base;

   boolean dump_cmd;

   size_t max_batch_size;
};

static INLINE struct i915_sw_winsys *
i915_sw_winsys(struct i915_winsys *iws)
{
   return (struct i915_sw_winsys *)iws;
}

struct pipe_fence_handle * i915_sw_fence_create(void);

void i915_sw_winsys_init_batchbuffer_functions(struct i915_sw_winsys *idws);
void i915_sw_winsys_init_buffer_functions(struct i915_sw_winsys *idws);
void i915_sw_winsys_init_fence_functions(struct i915_sw_winsys *idws);


/*
 * Buffer
 */


struct i915_sw_buffer {
   unsigned magic;

   void *ptr;
   unsigned map_count;
   enum i915_winsys_buffer_type type;
   enum i915_winsys_buffer_tile tile;
   const char *name;
};

static INLINE struct i915_sw_buffer *
i915_sw_buffer(struct i915_winsys_buffer *buffer)
{
   return (struct i915_sw_buffer *)buffer;
}

#endif