Subversion Repositories Kolibri OS

Rev

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

Rev 2335 Rev 2336
Line 118... Line 118...
118
		goto out;
118
		goto out;
119
	}
119
	}
Line 120... Line 120...
120
 
120
 
Line -... Line 121...
-
 
121
	mutex_lock(&dev->struct_mutex);
-
 
122
 
-
 
123
#if 0
121
	mutex_lock(&dev->struct_mutex);
124
// skip this part and use existing framebiffer
122
 
125
 
123
	/* Flush everything out, we'll be doing GTT only from now on */
126
	/* Flush everything out, we'll be doing GTT only from now on */
124
	ret = intel_pin_and_fence_fb_obj(dev, obj, false);
127
	ret = intel_pin_and_fence_fb_obj(dev, obj, false);
125
	if (ret) {
128
	if (ret) {
126
		DRM_ERROR("failed to pin fb: %d\n", ret);
129
		DRM_ERROR("failed to pin fb: %d\n", ret);
-
 
130
		goto out_unref;
-
 
131
	}
-
 
132
#endif
-
 
133
 
-
 
134
/***********************************************************************/
-
 
135
    {
-
 
136
#define LFB_SIZE 0xC00000
-
 
137
 
-
 
138
        static struct drm_mm_node lfb_vm_node;
-
 
139
 
-
 
140
        lfb_vm_node.size = LFB_SIZE;
-
 
141
        lfb_vm_node.start = 0;
-
 
142
        lfb_vm_node.mm = NULL;
-
 
143
 
-
 
144
        obj->gtt_space = &lfb_vm_node;
-
 
145
        obj->gtt_offset = 0;
-
 
146
        obj->pin_count = 1;
Line 127... Line 147...
127
		goto out_unref;
147
    }
128
	}
148
/***********************************************************************/
129
 
149
 
130
	info = framebuffer_alloc(0, device);
150
	info = framebuffer_alloc(0, device);