Subversion Repositories Kolibri OS

Rev

Rev 1877 | Rev 2004 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1877 Rev 1963
Line 13... Line 13...
13
 
13
 
Line 14... Line 14...
14
static cursor_t*  __stdcall select_cursor(cursor_t *cursor);
14
static cursor_t*  __stdcall select_cursor(cursor_t *cursor);
15
static void       __stdcall move_cursor(cursor_t *cursor, int x, int y);
15
static void       __stdcall move_cursor(cursor_t *cursor, int x, int y);
Line 16... Line -...
16
 
-
 
17
extern void __attribute__((regparm(1))) destroy_cursor(cursor_t *cursor);
16
 
Line 18... Line 17...
18
//extern void destroy_cursor(void);
17
extern void destroy_cursor(void);
19
 
18
 
Line 20... Line 19...
20
void disable_mouse(void)
19
void disable_mouse(void)
Line 31... Line 30...
31
    int       r;
30
    int       r;
32
 
31
 
Line 33... Line 32...
33
    rdev = (struct radeon_device *)rdisplay->ddev->dev_private;
32
    rdev = (struct radeon_device *)rdisplay->ddev->dev_private;
Line 34... Line 33...
34
 
33
 
35
    r = radeon_bo_create(rdev, NULL, CURSOR_WIDTH*CURSOR_HEIGHT*4,
34
    r = radeon_bo_create(rdev, CURSOR_WIDTH*CURSOR_HEIGHT*4,
Line 36... Line 35...
36
                     false, RADEON_GEM_DOMAIN_VRAM, &cursor->robj);
35
                     PAGE_SIZE, false, RADEON_GEM_DOMAIN_VRAM, &cursor->robj);
37
 
36
 
Line 38... Line 37...
38
    if (unlikely(r != 0))
37
    if (unlikely(r != 0))
Line 65... Line 64...
65
        *bits++ = 0;
64
        *bits++ = 0;
66
 
65
 
Line 67... Line 66...
67
    radeon_bo_kunmap(cursor->robj);
66
    radeon_bo_kunmap(cursor->robj);
Line 68... Line 67...
68
 
67
 
Line 69... Line 68...
69
    cursor->header.destroy = destroy_cursor;
68
 //   cursor->header.destroy = destroy_cursor;
70
 
69
 
Line 71... Line -...
71
    return 0;
-
 
72
};
70
    return 0;
73
 
71
};
74
//void __attribute__((externally_visible)) fini_cursor(cursor_t *cursor)
72
 
75
void __attribute__((regparm(1))) destroy_cursor(cursor_t *cursor)
73
void fini_cursor(cursor_t *cursor)
76
{
74
{
77
    list_del(&cursor->list);
75
    list_del(&cursor->list);
Line 270... Line 268...
270
{
268
{
271
    kfree(info);
269
    kfree(info);
272
}
270
}
273
 
271
 
Line -... Line 272...
-
 
272
#if 0
-
 
273
 
274
#define PACKET3_PAINT_MULTI             0x9A
274
#define PACKET3_PAINT_MULTI             0x9A
275
#       define R5XX_GMC_CLR_CMP_CNTL_DIS        (1    << 28)
275
#       define R5XX_GMC_CLR_CMP_CNTL_DIS        (1    << 28)
276
#       define R5XX_GMC_WR_MSK_DIS              (1    << 30)
276
#       define R5XX_GMC_WR_MSK_DIS              (1    << 30)
277
#       define R5XX_ROP3_P                0x00f00000
277
#       define R5XX_ROP3_P                0x00f00000
Line 2242... Line 2242...
2242
    vb_offset = obj_size;
2242
    vb_offset = obj_size;
2243
    obj_size += 32*4;
2243
    obj_size += 32*4;
2244
    obj_size = ALIGN(obj_size, 256);
2244
    obj_size = ALIGN(obj_size, 256);
Line 2245... Line 2245...
2245
 
2245
 
2246
    r = radeon_bo_create(rdev, NULL, obj_size, true, RADEON_GEM_DOMAIN_VRAM,
2246
    r = radeon_bo_create(rdev, NULL, obj_size, PAGE_SIZE, true,
2247
                &state_obj);
2247
                         RADEON_GEM_DOMAIN_VRAM, &state_obj);
2248
    if (r) {
2248
    if (r) {
2249
        DRM_ERROR("r600 failed to allocate state buffer\n");
2249
        DRM_ERROR("r600 failed to allocate state buffer\n");
2250
        return r;
2250
        return r;
Line 2412... Line 2412...
2412
 
2412
 
Line 2413... Line 2413...
2413
    LEAVE();
2413
    LEAVE();
2414
    return r;
2414
    return r;
2415
}
2415
}
-
 
2416
 
-
 
2417
#endif