mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-20 05:50:04 +01:00
Merge branch 'use_default_feedback_if_surface_feedback_is_not_ready' into 'master'
Xwayland: use default feedback if surface feedback is not ready See merge request xorg/xserver!2083
This commit is contained in:
commit
e9704fbd69
1 changed files with 7 additions and 1 deletions
|
|
@ -370,10 +370,16 @@ xwl_glamor_get_drawable_modifiers_and_scanout(DrawablePtr drawable,
|
|||
|
||||
main_dev = xwl_gbm_get_main_device(xwl_screen);
|
||||
|
||||
if (!xwl_window->feedback.feedback_done) {
|
||||
/* Surface feedback is not known yet, use the default feedback instead */
|
||||
return xwl_dmabuf_get_modifiers_for_device(&xwl_screen->default_feedback, main_dev,
|
||||
format, num_modifiers, modifiers,
|
||||
supports_scanout);
|
||||
}
|
||||
|
||||
return xwl_dmabuf_get_modifiers_for_device(&xwl_window->feedback, main_dev,
|
||||
format, num_modifiers, modifiers,
|
||||
supports_scanout);
|
||||
|
||||
}
|
||||
|
||||
Bool
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue