"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/egl/drivers/dri2/egl_dri2.c" between
mesa-19.1.3.tar.xz and mesa-19.1.4.tar.xz

About: Mesa is an open-source implementation of the OpenGL specification - a system for rendering interactive 3D graphics (main library code). Latest release.

egl_dri2.c  (mesa-19.1.3.tar.xz):egl_dri2.c  (mesa-19.1.4.tar.xz)
skipping to change at line 2660 skipping to change at line 2660
} }
static EGLBoolean static EGLBoolean
dri2_export_dma_buf_image_query_mesa(_EGLDriver *drv, _EGLDisplay *disp, dri2_export_dma_buf_image_query_mesa(_EGLDriver *drv, _EGLDisplay *disp,
_EGLImage *img, _EGLImage *img,
EGLint *fourcc, EGLint *nplanes, EGLint *fourcc, EGLint *nplanes,
EGLuint64KHR *modifiers) EGLuint64KHR *modifiers)
{ {
struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp); struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp);
struct dri2_egl_image *dri2_img = dri2_egl_image(img); struct dri2_egl_image *dri2_img = dri2_egl_image(img);
int num_planes;
(void) drv; (void) drv;
if (!dri2_can_export_dma_buf_image(disp, img)) if (!dri2_can_export_dma_buf_image(disp, img))
return EGL_FALSE; return EGL_FALSE;
dri2_dpy->image->queryImage(dri2_img->dri_image,
__DRI_IMAGE_ATTRIB_NUM_PLANES, &num_planes);
if (nplanes) if (nplanes)
dri2_dpy->image->queryImage(dri2_img->dri_image, *nplanes = num_planes;
__DRI_IMAGE_ATTRIB_NUM_PLANES, nplanes);
if (fourcc) if (fourcc)
dri2_dpy->image->queryImage(dri2_img->dri_image, dri2_dpy->image->queryImage(dri2_img->dri_image,
__DRI_IMAGE_ATTRIB_FOURCC, fourcc); __DRI_IMAGE_ATTRIB_FOURCC, fourcc);
if (modifiers) if (modifiers) {
*modifiers = 0; int mod_hi, mod_lo;
uint64_t modifier = DRM_FORMAT_MOD_INVALID;
bool query;
query = dri2_dpy->image->queryImage(dri2_img->dri_image,
__DRI_IMAGE_ATTRIB_MODIFIER_UPPER,
&mod_hi);
query &= dri2_dpy->image->queryImage(dri2_img->dri_image,
__DRI_IMAGE_ATTRIB_MODIFIER_LOWER,
&mod_lo);
if (query)
modifier = combine_u32_into_u64 (mod_hi, mod_lo);
for (int i = 0; i < num_planes; i++)
modifiers[i] = modifier;
}
return EGL_TRUE; return EGL_TRUE;
} }
static EGLBoolean static EGLBoolean
dri2_export_dma_buf_image_mesa(_EGLDriver *drv, _EGLDisplay *disp, _EGLImage *im g, dri2_export_dma_buf_image_mesa(_EGLDriver *drv, _EGLDisplay *disp, _EGLImage *im g,
int *fds, EGLint *strides, EGLint *offsets) int *fds, EGLint *strides, EGLint *offsets)
{ {
struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp); struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp);
struct dri2_egl_image *dri2_img = dri2_egl_image(img); struct dri2_egl_image *dri2_img = dri2_egl_image(img);
 End of changes. 4 change blocks. 
4 lines changed or deleted 22 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)