Subversion Repositories Kolibri OS

Rev

Rev 3192 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3192 Rev 3764
Line 3... Line 3...
3
#include "radeon.h"
3
#include "radeon.h"
4
#include "hmm.h"
4
#include "hmm.h"
5
#include "bitmap.h"
5
#include "bitmap.h"
6
 
6
 
Line 7... Line -...
7
//#define DRIVER_CAPS_0   HW_BIT_BLIT
-
 
Line -... Line 7...
-
 
7
 
-
 
8
#define DRIVER_CAPS_0   HW_BIT_BLIT
8
 
9
 
9
#define DRIVER_CAPS_0   0
10
//#define DRIVER_CAPS_0   0
Line 10... Line 11...
10
#define DRIVER_CAPS_1   0
11
#define DRIVER_CAPS_1   0
Line 11... Line 12...
11
 
12
 
Line 12... Line 13...
12
struct context *context_map[256];
13
struct context *context_map[256];
Line -... Line 14...
-
 
14
 
Line 13... Line 15...
13
 
15
struct hmm bm_mm;
14
struct hmm bm_mm;
16
 
15
 
17
extern struct drm_device *main_drm_device;
16
extern struct drm_device *main_drm_device;
18
 
Line 42... Line 44...
42
    UserFree(bitmap->uaddr);
44
    UserFree(bitmap->uaddr);
43
    __DestroyObject(bitmap);
45
    __DestroyObject(bitmap);
44
};
46
};
45
 
47
 
Line 46... Line -...
46
#if 0
-
 
47
static int bitmap_get_pages_gtt(struct drm_i915_gem_object *obj)
48
static int bitmap_get_pages_gtt(struct drm_i915_gem_object *obj)
48
{
49
{
49
    int page_count;
50
    int page_count;
Line 50... Line 51...
50
 
51
 
Line 108... Line 109...
108
    u32     max_height;
109
    u32     max_height;
109
    u32     format;       // reserved mbz
110
    u32     format;       // reserved mbz
110
};
111
};
111
 
112
 
Line 112... Line -...
112
#endif
-
 
Line 113... Line 113...
113
 
113
 
114
int create_surface(struct drm_device *dev, struct io_call_10 *pbitmap)
114
int create_surface(struct drm_device *dev, struct io_call_10 *pbitmap)
115
{
115
{
116
    struct radeon_device *rdev = dev->dev_private;
116
    struct radeon_device *rdev = dev->dev_private;
Line 181... Line 181...
181
    ret = radeon_bo_pin(obj, RADEON_GEM_DOMAIN_GTT, NULL);
181
    ret = radeon_bo_pin(obj, RADEON_GEM_DOMAIN_GTT, NULL);
182
    if (unlikely(ret != 0))
182
    if (unlikely(ret != 0))
183
        goto err3;
183
        goto err3;
Line -... Line 184...
-
 
184
 
184
 
185
#ifndef __TTM__
185
    ret = radeon_bo_user_map(obj, (void**)&uaddr);
186
    ret = radeon_bo_user_map(obj, (void**)&uaddr);
186
    if (unlikely(ret != 0))
187
    if (unlikely(ret != 0))
-
 
188
        goto err3;
Line 187... Line 189...
187
        goto err3;
189
#endif
188
 
190
 
Line 189... Line 191...
189
    bitmap->page_count = size/PAGE_SIZE;
191
    bitmap->page_count = size/PAGE_SIZE;
Line 480... Line 482...
480
    __DestroyObject(context);
482
    __DestroyObject(context);
481
    return NULL;
483
    return NULL;
482
};
484
};
483
485
 
Line -... Line 486...
-
 
486
#endif