Verified Commit 9c8d2744 authored by Simon Ser's avatar Simon Ser
Browse files

xwayland: don't use GBM_BO_USE_SCANOUT



This flag should only be used when the caller intends to display the
buffer on a hardware plane. Xwayland isn't a DRM client, so it doesn't
make sense to use this flag.

This change will allow the driver to potentially use buffer parameters
that are more optimized.
Signed-off-by: Simon Ser's avatarSimon Ser <contact@emersion.fr>
Reviewed-by: Daniel Stone's avatarDaniel Stone <daniels@collabora.com>
Reviewed-by: Michel Dänzer's avatarMichel Dänzer <mdaenzer@redhat.com>
parent fc4f2485
...@@ -239,7 +239,7 @@ xwl_glamor_gbm_create_pixmap(ScreenPtr screen, ...@@ -239,7 +239,7 @@ xwl_glamor_gbm_create_pixmap(ScreenPtr screen,
#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_RENDERING);
} }
if (bo) { if (bo) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment