summaryrefslogtreecommitdiff
path: root/lib/igt_kms.h
diff options
context:
space:
mode:
authorchandra konduru <chandra.konduru@intel.com>2015-03-30 13:52:04 -0700
committerThomas Wood <thomas.wood@intel.com>2015-04-14 17:44:34 +0100
commita26f9f9ad0e679c7ce413a25d34f6914e1174151 (patch)
tree4720fad162e0b2e61a49a88988f20cb909271173 /lib/igt_kms.h
parentace4208702c59205754507bec0c9ae4401a4f865 (diff)
i-g-t: Adding plane scaling test case
This patch is adding i-g-t plane scaling test case to test couple basic display plane scaling usages. Additional test scenarios can be added later. v2: -Added iterative scaling to visually observe scaling (me) v3: -Added a flag to control primary plane scaling (me) v4: -Use new tiled types when calling igt_create_fb (me) Signed-off-by: chandra konduru <chandra.konduru@intel.com> [Thomas: convert test to use igt_simple_main] Signed-off-by: Thomas Wood <thomas.wood@intel.com>
Diffstat (limited to 'lib/igt_kms.h')
-rw-r--r--lib/igt_kms.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/igt_kms.h b/lib/igt_kms.h
index d6757682..42363c2a 100644
--- a/lib/igt_kms.h
+++ b/lib/igt_kms.h
@@ -182,6 +182,7 @@ typedef struct {
unsigned int position_changed : 1;
unsigned int panning_changed : 1;
unsigned int rotation_changed : 1;
+ unsigned int size_changed : 1;
/*
* drm_plane can be NULL for primary and cursor planes (when not
* using the atomic modeset API)
@@ -259,6 +260,10 @@ 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);
void igt_crtc_set_background(igt_pipe_t *pipe, uint64_t background);
+void igt_fb_set_position(struct igt_fb *fb, igt_plane_t *plane,
+ uint32_t x, uint32_t y);
+void igt_fb_set_size(struct igt_fb *fb, igt_plane_t *plane,
+ uint32_t w, uint32_t h);
void igt_wait_for_vblank(int drm_fd, enum pipe pipe);