From bec1e6b149eb6a5eb470dd4eee6ba0aa57f1b590 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Fri, 18 Dec 2020 12:29:04 +0100 Subject: backend/drm: remove special linear case for cursor plane We now properly mark the cursor plane's formats as linear-only, and we now have a version of wlr_drm_format_intersect that handles the case of linear-only formats and implicit modifiers. We can remove the special drm_plane_init_surface flag we had for cursor planes. This also allows us to use a non-linear layout for cursor planes on drivers that support it. Tested on amdgpu GFX9. --- include/backend/drm/renderer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/backend/drm/renderer.h') diff --git a/include/backend/drm/renderer.h b/include/backend/drm/renderer.h index 4a86e46e..bafc4ad0 100644 --- a/include/backend/drm/renderer.h +++ b/include/backend/drm/renderer.h @@ -60,7 +60,7 @@ bool drm_surface_render_black_frame(struct wlr_drm_surface *surf); bool drm_plane_init_surface(struct wlr_drm_plane *plane, struct wlr_drm_backend *drm, int32_t width, uint32_t height, - uint32_t format, bool force_linear, bool with_modifiers); + uint32_t format, bool with_modifiers); void drm_plane_finish_surface(struct wlr_drm_plane *plane); #endif -- cgit v1.2.3