Subversion Repositories Kolibri OS

Rev

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

Rev 3291 Rev 3299
Line 42... Line 42...
42
    :"a"(68),"b"(12),"c"(mem));
42
    :"a"(68),"b"(12),"c"(mem));
43
    return val;
43
    return val;
44
}
44
}
Line 45... Line -...
45
 
-
 
46
 
45
 
Line 47... Line 46...
47
 
46
 
48
unsigned int cpu_cache_size();
47
unsigned int cpu_cache_size();
Line 792... Line 791...
792
}
791
}
Line 793... Line 792...
793
 
792
 
794
 
793
 
795
static bool kgem_init_pinned_batches(struct kgem *kgem)
794
static bool kgem_init_pinned_batches(struct kgem *kgem)
796
{
795
{
797
	int count[2] = { 4, 2 };
796
	int count[2] = { 2, 1 };
Line 798... Line 797...
798
	int size[2] = { 1, 4 };
797
	int size[2] = { 1, 2 };
799
	int n, i;
798
	int n, i;
Line 1337... Line 1336...
1337
}
1336
}
Line 1338... Line 1337...
1338
 
1337
 
1339
static void kgem_bo_free(struct kgem *kgem, struct kgem_bo *bo)
1338
static void kgem_bo_free(struct kgem *kgem, struct kgem_bo *bo)
1340
{
1339
{
1341
	DBG(("%s: handle=%d\n", __FUNCTION__, bo->handle));
-
 
Line 1342... Line 1340...
1342
	printf("%s: handle=%d\n", __FUNCTION__, bo->handle);
1340
	DBG(("%s: handle=%d\n", __FUNCTION__, bo->handle));
1343
 
1341
 
1344
	assert(bo->refcnt == 0);
1342
	assert(bo->refcnt == 0);
Line 1599... Line 1597...
1599
 
1597
 
1600
static void __kgem_bo_destroy(struct kgem *kgem, struct kgem_bo *bo)
1598
static void __kgem_bo_destroy(struct kgem *kgem, struct kgem_bo *bo)
1601
{
1599
{
Line 1602... Line -...
1602
	DBG(("%s: handle=%d\n", __FUNCTION__, bo->handle));
-
 
1603
 
-
 
1604
	printf("%s: handle=%d\n", __FUNCTION__, bo->handle);
1600
	DBG(("%s: handle=%d\n", __FUNCTION__, bo->handle));
1605
		
1601
 
1606
	assert(list_is_empty(&bo->list));
1602
	assert(list_is_empty(&bo->list));
1607
	assert(bo->refcnt == 0);
1603
	assert(bo->refcnt == 0);
Line 4206... Line 4202...
4206
	bo->pitch     = fb->pitch;
4202
	bo->pitch     = fb->pitch;
4207
    bo->tiling    = I915_TILING_NONE;
4203
    bo->tiling    = I915_TILING_NONE;
4208
    bo->scanout   = 1;
4204
    bo->scanout   = 1;
4209
	fb->fb_bo     = bo;    
4205
	fb->fb_bo     = bo;    
Line 4210... Line 4206...
4210
 
4206
 
4211
    printf("fb width %d height %d pitch %d bo %p\n",
4207
//    printf("fb width %d height %d pitch %d bo %p\n",
Line 4212... Line 4208...
4212
            fb->width, fb->height, fb->pitch, fb->fb_bo);
4208
//            fb->width, fb->height, fb->pitch, fb->fb_bo);
4213
            
4209
            
Line 4214... Line 4210...
4214
    return 1;
4210
    return 1;