Rev 4379 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4379 | Rev 4401 | ||
---|---|---|---|
Line 44... | Line 44... | ||
44 | #include "egl_dri2.h" |
44 | #include "egl_dri2.h" |
Line 45... | Line 45... | ||
45 | 45 | ||
46 | void* load_library(const char *name); |
46 | void* load_library(const char *name); |
Line 47... | Line 47... | ||
47 | void *get_proc_address(void *module, char *proc_name); |
47 | void *get_proc_address(void *module, char *proc_name); |
48 | 48 | ||
49 | static int (*blit_bitmap_from_handle)(bitmap_t *bitmap, uint32_t handle); |
49 | int (*blit_bitmap_from_handle)(bitmap_t *bitmap, uint32_t handle); |
50 | static void (*blit_set_bo_handle)(bitmap_t *bitmap, int handle); |
50 | void (*blit_set_bo_handle)(bitmap_t *bitmap, int handle); |
Line 51... | Line 51... | ||
51 | static int (*blit_blit_tex)(bitmap_t *bitmap, int scale, int vsync, int dst_x, int dst_y, |
51 | int (*blit_blit_tex)(bitmap_t *bitmap, int scale, int vsync, int dst_x, int dst_y, |
52 | int w, int h, int src_x, int src_y); |
52 | int w, int h, int src_x, int src_y); |
53 | 53 | ||
Line 265... | Line 265... | ||
265 | int *out_count, void *loaderPrivate) |
265 | int *out_count, void *loaderPrivate) |
266 | { |
266 | { |
267 | struct dri2_egl_surface *dri2_surf = loaderPrivate; |
267 | struct dri2_egl_surface *dri2_surf = loaderPrivate; |
268 | int i, j; |
268 | int i, j; |
Line 269... | Line -... | ||
269 | - | ||
270 | // printf("dri2_get_buffers_with_format count %d\n", count); |
- | |
271 | 269 | ||
272 | dri2_surf->buffer_count = 0; |
270 | dri2_surf->buffer_count = 0; |
273 | for (i = 0, j = 0; i < 2 * count; i += 2, j++) { |
271 | for (i = 0, j = 0; i < 2 * count; i += 2, j++) { |
274 | assert(attachments[i] < __DRI_BUFFER_COUNT); |
272 | assert(attachments[i] < __DRI_BUFFER_COUNT); |
Line 275... | Line -... | ||
275 | assert(dri2_surf->buffer_count < 5); |
- | |
276 | - | ||
277 | // printf("attachments %d\n",attachments[i]); |
273 | assert(dri2_surf->buffer_count < 5); |
278 | 274 | ||
279 | switch (attachments[i]) { |
275 | switch (attachments[i]) { |
280 | case __DRI_BUFFER_BACK_LEFT: |
276 | case __DRI_BUFFER_BACK_LEFT: |
281 | if (get_back_bo(dri2_surf, &dri2_surf->buffers[j]) < 0) { |
277 | if (get_back_bo(dri2_surf, &dri2_surf->buffers[j]) < 0) { |