"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "hw/xwayland/xwayland-glamor-gbm.c" between
xorg-server-1.20.7.tar.bz2 and xorg-server-1.20.8.tar.bz2

About: The X.Org X Server component of the X Window System architecture.

xwayland-glamor-gbm.c  (xorg-server-1.20.7.tar.bz2):xwayland-glamor-gbm.c  (xorg-server-1.20.8.tar.bz2)
skipping to change at line 245 skipping to change at line 245
else else
#endif #endif
{ {
bo = gbm_bo_create(xwl_gbm->gbm, width, height, format, bo = gbm_bo_create(xwl_gbm->gbm, width, height, format,
GBM_BO_USE_SCANOUT | GBM_BO_USE_RENDERING); GBM_BO_USE_SCANOUT | GBM_BO_USE_RENDERING);
} }
if (bo) { if (bo) {
pixmap = xwl_glamor_gbm_create_pixmap_for_bo(screen, bo, depth); pixmap = xwl_glamor_gbm_create_pixmap_for_bo(screen, bo, depth);
if (!pixmap) if (!pixmap) {
gbm_bo_destroy(bo); gbm_bo_destroy(bo);
}
else if (xwl_screen->rootless && hint == CREATE_PIXMAP_USAGE_BACKING
_PIXMAP) {
glamor_clear_pixmap(pixmap);
}
} }
} }
if (!pixmap) if (!pixmap)
pixmap = glamor_create_pixmap(screen, width, height, depth, hint); pixmap = glamor_create_pixmap(screen, width, height, depth, hint);
return pixmap; return pixmap;
} }
static Bool static Bool
skipping to change at line 797 skipping to change at line 801
static void static void
xwl_dmabuf_handle_modifier(void *data, struct zwp_linux_dmabuf_v1 *dmabuf, xwl_dmabuf_handle_modifier(void *data, struct zwp_linux_dmabuf_v1 *dmabuf,
uint32_t format, uint32_t modifier_hi, uint32_t format, uint32_t modifier_hi,
uint32_t modifier_lo) uint32_t modifier_lo)
{ {
struct xwl_screen *xwl_screen = data; struct xwl_screen *xwl_screen = data;
struct xwl_format *xwl_format = NULL; struct xwl_format *xwl_format = NULL;
int i; int i;
if (modifier_hi == (DRM_FORMAT_MOD_INVALID >> 32) &&
modifier_lo == (DRM_FORMAT_MOD_INVALID & 0xffffffff))
return;
for (i = 0; i < xwl_screen->num_formats; i++) { for (i = 0; i < xwl_screen->num_formats; i++) {
if (xwl_screen->formats[i].format == format) { if (xwl_screen->formats[i].format == format) {
xwl_format = &xwl_screen->formats[i]; xwl_format = &xwl_screen->formats[i];
break; break;
} }
} }
if (xwl_format == NULL) { if (xwl_format == NULL) {
xwl_screen->num_formats++; xwl_screen->num_formats++;
xwl_screen->formats = realloc(xwl_screen->formats, xwl_screen->formats = realloc(xwl_screen->formats,
 End of changes. 3 change blocks. 
1 lines changed or deleted 10 lines changed or added

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