diff options
author | Lionel Landwerlin <lionel.g.landwerlin@intel.com> | 2016-04-05 14:13:53 +0100 |
---|---|---|
committer | Marius Vlad <marius.c.vlad@intel.com> | 2016-04-05 17:09:29 +0300 |
commit | cd8da3f65d6d6956b50e4629cb43d3a8d55faab3 (patch) | |
tree | 18f77819d8084c9837f3473c48e126cf28c0121a /lib/igt_kms.h | |
parent | 54b8a1f2d3b1651448645c89dda278536406cbda (diff) |
lib: kms: move framebuffer scanout offset/size to plane
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 <lionel.g.landwerlin@intel.com>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Marius Vlad <marius.c.vlad@intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Marius Vlad <marius.c.vlad@intel.com>
Diffstat (limited to 'lib/igt_kms.h')
-rw-r--r-- | lib/igt_kms.h | 8 |
1 files changed, 8 insertions, 0 deletions
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; |