drm/tinydrm: Use struct drm_rect
This prepares for the switch to drm_atomic_helper_dirtyfb() in the next patch. The damage helper returns a drm_rect so switch to that everywhere including using a pointer in the dirty functions. This is a non-functional change except for the debug print which looks a bit different. Signed-off-by: Noralf Trønnes <noralf@tronnes.org> Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch> Reviewed-by: Sam Ravnborg <sam@ravnborg.org> Link: https://patchwork.freedesktop.org/patch/msgid/20190115043643.2364-4-noralf@tronnes.org
This commit is contained in:
@@ -30,6 +30,7 @@
|
||||
#include <drm/drm_fb_cma_helper.h>
|
||||
#include <drm/drm_gem_cma_helper.h>
|
||||
#include <drm/drm_gem_framebuffer_helper.h>
|
||||
#include <drm/drm_rect.h>
|
||||
#include <drm/tinydrm/tinydrm.h>
|
||||
#include <drm/tinydrm/tinydrm-helpers.h>
|
||||
|
||||
@@ -532,7 +533,7 @@ static int repaper_fb_dirty(struct drm_framebuffer *fb,
|
||||
struct dma_buf_attachment *import_attach = cma_obj->base.import_attach;
|
||||
struct tinydrm_device *tdev = fb->dev->dev_private;
|
||||
struct repaper_epd *epd = epd_from_tinydrm(tdev);
|
||||
struct drm_clip_rect clip;
|
||||
struct drm_rect clip;
|
||||
u8 *buf = NULL;
|
||||
int ret = 0;
|
||||
|
||||
|
Reference in New Issue
Block a user