From cd8da3f65d6d6956b50e4629cb43d3a8d55faab3 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Tue, 5 Apr 2016 14:13:53 +0100 Subject: lib: kms: move framebuffer scanout offset/size to plane MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This fixes potential crashes when the framebuffer is unset from a given plane. v2: s/with/within/ typo in header Signed-off-by: Lionel Landwerlin Cc: Maarten Lankhorst Cc: Marius Vlad Cc: Ville Syrjälä Reviewed-by: Ville Syrjälä Signed-off-by: Marius Vlad --- lib/igt_kms.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/igt_kms.h') diff --git a/lib/igt_kms.h b/lib/igt_kms.h index 8ae11924..b7631203 100644 --- a/lib/igt_kms.h +++ b/lib/igt_kms.h @@ -243,6 +243,14 @@ typedef struct { int crtc_x, crtc_y; /* size within pipe_src_w x pipe_src_h */ int crtc_w, crtc_h; + + /* position within the framebuffer */ + uint32_t src_x; + uint32_t src_y; + /* size within the framebuffer*/ + uint32_t src_w; + uint32_t src_h; + /* panning offset within the fb */ unsigned int pan_x, pan_y; igt_rotation_t rotation; -- cgit v1.2.3