modetest: fix typo
authorRob Clark <rob@ti.com>
Tue, 10 Apr 2012 15:23:50 +0000 (10:23 -0500)
committerRob Clark <rob@ti.com>
Wed, 11 Apr 2012 14:41:29 +0000 (09:41 -0500)
Reported-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Rob Clark <rob@ti.com>
tests/modetest/modetest.c

index 819724a..223adc4 100644 (file)
@@ -770,7 +770,7 @@ set_plane(struct kms_driver *kms, struct connector *c, struct plane *p)
                        kms_bo_get_prop(plane_bo, KMS_HANDLE, &handles[1]);
                        pitches[2] = p->w / 2;
                        offsets[2] = offsets[1] + (p->w * p->h) / 4;
-                       kms_bo_get_prop(plane_bo, KMS_HANDLE, &handles[1]);
+                       kms_bo_get_prop(plane_bo, KMS_HANDLE, &handles[2]);
 
                        fill420(virtual, virtual+offsets[1], virtual+offsets[2],
                                        1, 0, p->w, p->h, pitches[0]);