mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2025-12-20 07:00:09 +01:00
backend-drm: Use paint_node->draw_solid in more cases
In order to streamline our checks and to make it easier to ensure that we replace paint nodes with solid placeholders correctly. Fix the failure reason in one case while on it. Signed-off-by: Robert Mader <robert.mader@collabora.com>
This commit is contained in:
parent
4cb7347407
commit
64c938f5d6
1 changed files with 3 additions and 4 deletions
|
|
@ -547,9 +547,9 @@ drm_output_find_plane_for_view(struct drm_output_state *state,
|
|||
}
|
||||
|
||||
buffer = ev->surface->buffer_ref.buffer;
|
||||
if (buffer->type == WESTON_BUFFER_SOLID) {
|
||||
if (pnode->draw_solid) {
|
||||
pnode->try_view_on_plane_failure_reasons |=
|
||||
FAILURE_REASONS_BUFFER_TYPE;
|
||||
FAILURE_REASONS_SOLID_SURFACE;
|
||||
} else if (buffer->type == WESTON_BUFFER_SHM) {
|
||||
try_pnode_on_cursor_plane(output, pnode);
|
||||
|
||||
|
|
@ -916,8 +916,7 @@ drm_output_propose_state(struct weston_output *output_base,
|
|||
* if it is fullscreen (i.e. we disable the primary plane), and
|
||||
* opaque (as it is only shown in the absence of any covering
|
||||
* plane, not as a replacement for the primary plane per se). */
|
||||
if (ev->surface->buffer_ref.buffer &&
|
||||
ev->surface->buffer_ref.buffer->type == WESTON_BUFFER_SOLID)
|
||||
if (pnode->draw_solid)
|
||||
pnode->try_view_on_plane_failure_reasons |=
|
||||
FAILURE_REASONS_SOLID_SURFACE;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue