summaryrefslogtreecommitdiff
path: root/lib/igt_kms.c
diff options
context:
space:
mode:
authorMatt Roper <matthew.d.roper@intel.com>2016-08-03 09:15:41 -0700
committerMatt Roper <matthew.d.roper@intel.com>2016-08-04 13:46:00 -0700
commitdb636a7a392aa657de89bdc7ea9a15f56596751c (patch)
treebb53dee0e26346f737d41efad52145b3b9a4ec16 /lib/igt_kms.c
parentf8ec780c4def36acb82db7d7010b97221e3d3eef (diff)
igt_kms: Use proper panning coordinates for legacy primary plane updates
A copy/paste error resulted in us using src_x for both the x and y panning coordinates; make sure we use src_y instead for the appropriate parameter. Fixes: 0e29ce3265b ("igt_kms: Remove pan members from igt_plane, v2.") Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Signed-off-by: Matt Roper <matthew.d.roper@intel.com> Reviewed-by: Bob Paauwe <bob.j.paauwe@intel.com>
Diffstat (limited to 'lib/igt_kms.c')
-rw-r--r--lib/igt_kms.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/igt_kms.c b/lib/igt_kms.c
index 7d7a53c9..ed916889 100644
--- a/lib/igt_kms.c
+++ b/lib/igt_kms.c
@@ -1937,13 +1937,13 @@ static int igt_primary_plane_commit_legacy(igt_plane_t *primary,
igt_output_name(output),
kmstest_pipe_name(pipe->pipe),
fb_id,
- primary->src_x, primary->src_x,
+ primary->src_x, primary->src_y,
mode->hdisplay, mode->vdisplay);
ret = drmModeSetCrtc(display->drm_fd,
crtc_id,
fb_id,
- primary->src_x, primary->src_x,
+ primary->src_x, primary->src_y,
&output->id,
1,
mode);