Skip to contentSkip to conversation

igt_kms: Do not reset plane position on assigning a fb

PATCH New Tvrtko Ursulin 1 participant 1 message Apr 28, 2015 Library code

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 igt_kms: Do not reset plane position on assigning a fb

From: Tvrtko Ursulin <[email protected]>

commit a26f9f9ad0e679c7ce413a25d34f6914e1174151
Author: chandra konduru <[email protected]>
Date: Mon Mar 30 13:52:04 2015 -0700

i-g-t: Adding plane scaling test case

Started doing this and broke kms_rotation_crc.

---
 lib/igt_kms.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
lib/igt_kms.c +1 -3
index b5ba273..0665d70 100644
@@ -1765,9 +1765,7 @@ void igt_plane_set_fb(igt_plane_t *plane, struct igt_fb *fb)
 	plane->fb = fb;
 	/* hack to keep tests working that don't call igt_plane_set_size() */
 	if (fb) {
-		/* set default plane pos/size as fb size */
-		plane->crtc_x = 0;
-		plane->crtc_y = 0;
+		/* set default plane size as fb size */
 		plane->crtc_w = fb->width;
 		plane->crtc_h = fb->height;
 
Signature · 6 lines
2.3.5

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx