diff options
author | Maarten Lankhorst <maarten.lankhorst@linux.intel.com> | 2016-06-30 11:32:10 +0200 |
---|---|---|
committer | Maarten Lankhorst <maarten.lankhorst@linux.intel.com> | 2016-07-26 14:50:21 +0200 |
commit | 0e29ce3265b40ae965cd14dfa4765a21ff50d5b7 (patch) | |
tree | 530eacf216594bbcc362ce27248d35d95498f442 /lib | |
parent | 9f45ea116539f6c1ad8cd11cd627f091d63baa4b (diff) |
igt_kms: Remove pan members from igt_plane, v2.
They're duplicates with src_x/y, so just use those.
Changes since v1:
- Fix order of parameters in calls to igt_fb_set_position.
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Ander Conselvan de Oliveira <conselvan2@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/igt_kms.c | 24 | ||||
-rw-r--r-- | lib/igt_kms.h | 4 |
2 files changed, 4 insertions, 24 deletions
diff --git a/lib/igt_kms.c b/lib/igt_kms.c index 2880c487..53795952 100644 --- a/lib/igt_kms.c +++ b/lib/igt_kms.c @@ -1915,7 +1915,7 @@ static int igt_primary_plane_commit_legacy(igt_plane_t *primary, igt_assert(!primary->rotation_changed); if (!primary->fb_changed && !primary->position_changed && - !primary->size_changed && !primary->panning_changed) + !primary->size_changed) return 0; crtc_id = pipe->crtc_id; @@ -1927,18 +1927,18 @@ static int igt_primary_plane_commit_legacy(igt_plane_t *primary, if (fb_id) { LOG(display, - "%s: SetCrtc pipe %s, fb %u, panning (%d, %d), " + "%s: SetCrtc pipe %s, fb %u, src (%d, %d), " "mode %dx%d\n", igt_output_name(output), kmstest_pipe_name(pipe->pipe), fb_id, - primary->pan_x, primary->pan_y, + primary->src_x, primary->src_x, mode->hdisplay, mode->vdisplay); ret = drmModeSetCrtc(display->drm_fd, crtc_id, fb_id, - primary->pan_x, primary->pan_y, + primary->src_x, primary->src_x, &output->id, 1, mode); @@ -1962,7 +1962,6 @@ static int igt_primary_plane_commit_legacy(igt_plane_t *primary, primary->fb_changed = false; primary->position_changed = false; primary->size_changed = false; - primary->panning_changed = false; return 0; } @@ -2408,21 +2407,6 @@ void igt_fb_set_size(struct igt_fb *fb, igt_plane_t *plane, plane->fb_changed = true; } -void igt_plane_set_panning(igt_plane_t *plane, int x, int y) -{ - igt_pipe_t *pipe = plane->pipe; - igt_display_t *display = pipe->display; - - LOG(display, "%s.%d: plane_set_panning(%d,%d)\n", - kmstest_pipe_name(pipe->pipe), - plane->index, x, y); - - plane->pan_x = x; - plane->pan_y = y; - - plane->panning_changed = true; -} - static const char *rotation_name(igt_rotation_t rotation) { switch (rotation) { diff --git a/lib/igt_kms.h b/lib/igt_kms.h index b9e8d344..4d18c010 100644 --- a/lib/igt_kms.h +++ b/lib/igt_kms.h @@ -220,7 +220,6 @@ typedef struct { /* state tracking */ unsigned int fb_changed : 1; unsigned int position_changed : 1; - unsigned int panning_changed : 1; unsigned int rotation_changed : 1; unsigned int size_changed : 1; /* @@ -244,8 +243,6 @@ typedef struct { uint32_t src_w; uint32_t src_h; - /* panning offset within the fb */ - unsigned int pan_x, pan_y; igt_rotation_t rotation; uint32_t atomic_props_plane[IGT_NUM_PLANE_PROPS]; } igt_plane_t; @@ -326,7 +323,6 @@ void igt_pipe_set_gamma_lut(igt_pipe_t *pipe, void *ptr, size_t length); 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); 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, |