Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
4358 Serge 1
 
2
#include "i915_sw_public.h"
3
#include "util/u_memory.h"
4
5
 
6
 
7
 * Helper functions
8
 */
9
10
 
11
 
12
i915_sw_get_device_id(unsigned int *device_id)
13
{
14
   /* just pick a i945 hw id */
15
   *device_id = 0x27A2;
16
}
17
18
 
19
i915_sw_destroy(struct i915_winsys *iws)
20
{
21
   struct i915_sw_winsys *isws = i915_sw_winsys(iws);
22
   FREE(isws);
23
}
24
25
 
26
 
27
 * Exported functions
28
 */
29
30
 
31
 
32
i915_sw_winsys_create()
33
{
34
   struct i915_sw_winsys *isws;
35
   unsigned int deviceID;
36
37
 
38
   if (!isws)
39
      return NULL;
40
41
 
42
43
 
44
   i915_sw_winsys_init_buffer_functions(isws);
45
   i915_sw_winsys_init_fence_functions(isws);
46
47
 
48
49
 
50
   isws->max_batch_size = 16 * 4096;
51
52
 
53
54
 
55
}
56