summaryrefslogtreecommitdiff
path: root/lib/igt_kms.h
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2014-09-12 20:18:04 +0300
committerVille Syrjälä <ville.syrjala@linux.intel.com>2014-09-18 12:56:56 +0300
commit7b76754e0ee3b84e703f823dd89aa94d75c011e7 (patch)
tree21be3339c831810466b2cd8fc657123c0e5e9d5f /lib/igt_kms.h
parentb4fe481d4f2ccebc125185a4c5cb652b71513723 (diff)
lib: Add igt_plane_set_size()
Allow tests to specify the plane size instead of assuming that the entire FB will be scanned out. To keep the current tests working without having to sprinkle igt_plane_set_size() calls all over the place, make igt_plane_set_fb() reset the plane size to the FB size. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Diffstat (limited to 'lib/igt_kms.h')
-rw-r--r--lib/igt_kms.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/igt_kms.h b/lib/igt_kms.h
index 921afef1..027b4e0e 100644
--- a/lib/igt_kms.h
+++ b/lib/igt_kms.h
@@ -212,6 +212,8 @@ typedef struct {
/* position within pipe_src_w x pipe_src_h */
int crtc_x, crtc_y;
+ /* size within pipe_src_w x pipe_src_h */
+ int crtc_w, crtc_h;
/* panning offset within the fb */
unsigned int pan_x, pan_y;
igt_rotation_t rotation;
@@ -266,6 +268,7 @@ static inline bool igt_plane_supports_rotation(igt_plane_t *plane)
void igt_plane_set_fb(igt_plane_t *plane, struct igt_fb *fb);
void igt_plane_set_position(igt_plane_t *plane, int x, int y);
+void igt_plane_set_size(igt_plane_t *plane, int w, int h);
void igt_plane_set_panning(igt_plane_t *plane, int x, int y);
void igt_plane_set_rotation(igt_plane_t *plane, igt_rotation_t rotation);