wayland/dma-buf: Add 'render' debug prints
And change existing ones where it makes sense. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2680>
This commit is contained in:
parent
28a3da8d28
commit
e0b2966dd0
@ -571,7 +571,7 @@ meta_wayland_dma_buf_try_acquire_scanout (MetaWaylandDmaBufBuffer *dma_buf,
|
|||||||
&error);
|
&error);
|
||||||
if (!gbm_bo)
|
if (!gbm_bo)
|
||||||
{
|
{
|
||||||
meta_topic (META_DEBUG_WAYLAND,
|
meta_topic (META_DEBUG_RENDER,
|
||||||
"Failed to import scanout gbm_bo: %s", error->message);
|
"Failed to import scanout gbm_bo: %s", error->message);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
@ -583,7 +583,7 @@ meta_wayland_dma_buf_try_acquire_scanout (MetaWaylandDmaBufBuffer *dma_buf,
|
|||||||
fb = meta_drm_buffer_gbm_new_take (device_file, gbm_bo, flags, &error);
|
fb = meta_drm_buffer_gbm_new_take (device_file, gbm_bo, flags, &error);
|
||||||
if (!fb)
|
if (!fb)
|
||||||
{
|
{
|
||||||
meta_topic (META_DEBUG_WAYLAND,
|
meta_topic (META_DEBUG_RENDER,
|
||||||
"Failed to create scanout buffer: %s", error->message);
|
"Failed to create scanout buffer: %s", error->message);
|
||||||
gbm_bo_destroy (gbm_bo);
|
gbm_bo_destroy (gbm_bo);
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -591,7 +591,11 @@ meta_wayland_dma_buf_try_acquire_scanout (MetaWaylandDmaBufBuffer *dma_buf,
|
|||||||
|
|
||||||
if (!meta_onscreen_native_is_buffer_scanout_compatible (onscreen,
|
if (!meta_onscreen_native_is_buffer_scanout_compatible (onscreen,
|
||||||
META_DRM_BUFFER (fb)))
|
META_DRM_BUFFER (fb)))
|
||||||
return NULL;
|
{
|
||||||
|
meta_topic (META_DEBUG_RENDER,
|
||||||
|
"Buffer not scanout compatible (see also KMS debug topic)");
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
return COGL_SCANOUT (g_steal_pointer (&fb));
|
return COGL_SCANOUT (g_steal_pointer (&fb));
|
||||||
#else
|
#else
|
||||||
|
Loading…
Reference in New Issue
Block a user