Subversion Repositories Kolibri OS

Rev

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

Rev 6114 Rev 6138
Line 1244... Line 1244...
1244
   { __DRI_IMAGE_COMPONENTS_Y_U_V, EGL_TEXTURE_Y_U_V_WL, 3 },
1244
   { __DRI_IMAGE_COMPONENTS_Y_U_V, EGL_TEXTURE_Y_U_V_WL, 3 },
1245
   { __DRI_IMAGE_COMPONENTS_Y_UV, EGL_TEXTURE_Y_UV_WL, 2 },
1245
   { __DRI_IMAGE_COMPONENTS_Y_UV, EGL_TEXTURE_Y_UV_WL, 2 },
1246
   { __DRI_IMAGE_COMPONENTS_Y_XUXV, EGL_TEXTURE_Y_XUXV_WL, 2 },
1246
   { __DRI_IMAGE_COMPONENTS_Y_XUXV, EGL_TEXTURE_Y_XUXV_WL, 2 },
1247
};
1247
};
Line 1248... Line -...
1248
 
-
 
1249
#if 0
1248
 
1250
static _EGLImage *
1249
static _EGLImage *
1251
dri2_create_image_wayland_wl_buffer(_EGLDisplay *disp, _EGLContext *ctx,
1250
dri2_create_image_wayland_wl_buffer(_EGLDisplay *disp, _EGLContext *ctx,
1252
				    EGLClientBuffer _buffer,
1251
				    EGLClientBuffer _buffer,
1253
				    const EGLint *attr_list)
1252
				    const EGLint *attr_list)
1254
{
1253
{
1255
   struct wl_drm_buffer *buffer = (struct wl_drm_buffer *) _buffer;
1254
   struct egl_planar_buffer *buffer = (struct egl_planar_buffer *) _buffer;
1256
   struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp);
1255
   struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp);
1257
   const struct wl_drm_components_descriptor *f;
1256
   const struct wl_drm_components_descriptor *f;
1258
   __DRIimage *dri_image;
1257
   __DRIimage *dri_image;
1259
   _EGLImageAttribs attrs;
1258
   _EGLImageAttribs attrs;
1260
   EGLint err;
1259
   EGLint err;
Line 1261... Line -...
1261
   int32_t plane;
-
 
1262
 
-
 
Line 1263... Line 1260...
1263
   if (!wayland_buffer_is_drm(dri2_dpy->wl_server_drm, &buffer->buffer))
1260
   int32_t plane;
1264
       return NULL;
1261
 
1265
 
1262
 
1266
   err = _eglParseImageAttribList(&attrs, disp, attr_list);
1263
   err = _eglParseImageAttribList(&attrs, disp, attr_list);
Line 1284... Line 1281...
1284
      return NULL;
1281
      return NULL;
1285
   }
1282
   }
Line 1286... Line 1283...
1286
 
1283
 
1287
   return dri2_create_image(disp, dri_image);
1284
   return dri2_create_image(disp, dri_image);
1288
}
-
 
Line 1289... Line 1285...
1289
#endif
1285
}
1290
 
1286
 
1291
/**
1287
/**
1292
 * Set the error code after a call to
1288
 * Set the error code after a call to
Line 1415... Line 1411...
1415
      return dri2_create_image_khr_texture(disp, ctx, target, buffer, attr_list);
1411
      return dri2_create_image_khr_texture(disp, ctx, target, buffer, attr_list);
1416
   case EGL_GL_RENDERBUFFER_KHR:
1412
   case EGL_GL_RENDERBUFFER_KHR:
1417
      return dri2_create_image_khr_renderbuffer(disp, ctx, buffer, attr_list);
1413
      return dri2_create_image_khr_renderbuffer(disp, ctx, buffer, attr_list);
1418
   case EGL_DRM_BUFFER_MESA:
1414
   case EGL_DRM_BUFFER_MESA:
1419
      return dri2_create_image_mesa_drm_buffer(disp, ctx, buffer, attr_list);
1415
      return dri2_create_image_mesa_drm_buffer(disp, ctx, buffer, attr_list);
1420
#ifdef HAVE_WAYLAND_PLATFORM
-
 
1421
   case EGL_WAYLAND_BUFFER_WL:
1416
   case EGL_WAYLAND_BUFFER_WL:
1422
      return dri2_create_image_wayland_wl_buffer(disp, ctx, buffer, attr_list);
1417
      return dri2_create_image_wayland_wl_buffer(disp, ctx, buffer, attr_list);
1423
#endif
-
 
1424
   default:
1418
   default:
1425
      _eglError(EGL_BAD_PARAMETER, "dri2_create_image_khr");
1419
      _eglError(EGL_BAD_PARAMETER, "dri2_create_image_khr");
1426
      return EGL_NO_IMAGE_KHR;
1420
      return EGL_NO_IMAGE_KHR;
1427
   }
1421
   }
1428
}
1422
}