mirror of
https://gitlab.freedesktop.org/wayland/weston
synced 2024-09-06 18:05:39 +00:00
backend-drm: Move renderer-only vs. scanout_plane test earlier
No point trying to put something on the scanout plane in mixed mode. Signed-off-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
parent
ae60745b61
commit
0ecd6c3d33
|
@ -431,11 +431,6 @@ drm_output_try_view_on_plane(struct drm_plane *plane,
|
|||
availability = PLACED_ON_PLANE;
|
||||
break;
|
||||
case WDRM_PLANE_TYPE_PRIMARY:
|
||||
if (mode != DRM_OUTPUT_PROPOSE_STATE_PLANES_ONLY) {
|
||||
availability = NO_PLANES_ACCEPTED;
|
||||
goto out;
|
||||
}
|
||||
|
||||
ps = drm_output_prepare_scanout_view(state, ev, mode,
|
||||
fb, zpos);
|
||||
if (ps)
|
||||
|
@ -693,7 +688,8 @@ drm_output_prepare_plane_view(struct drm_output_state *state,
|
|||
}
|
||||
|
||||
if (plane->type == WDRM_PLANE_TYPE_PRIMARY &&
|
||||
plane != output->scanout_plane) {
|
||||
(plane != output->scanout_plane ||
|
||||
mode != DRM_OUTPUT_PROPOSE_STATE_PLANES_ONLY)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue