All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Konduru, Chandra" <chandra.konduru@intel.com>
To: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>,
	"Intel-gfx@lists.freedesktop.org"
	<Intel-gfx@lists.freedesktop.org>
Cc: "Wood, Thomas" <thomas.wood@intel.com>
Subject: Re: [PATCH i-g-t 2/4] igt_kms: Merge condition in igt_plane_set_fb
Date: Wed, 6 May 2015 20:56:30 +0000	[thread overview]
Message-ID: <76A9B330A4D78C4D99CB292C4CC06C0E36FC7484@fmsmsx101.amr.corp.intel.com> (raw)
In-Reply-To: <1430819603-492-2-git-send-email-tvrtko.ursulin@linux.intel.com>



> @@ -1765,14 +1765,6 @@ 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) {
> -		plane->crtc_w = fb->width;
> -		plane->crtc_h = fb->height;
> -	} else {
> -		plane->crtc_w = 0;
> -		plane->crtc_h = 0;
> -	}
> -
> -	if (fb) {
>  		/* set default plane pos/size as fb size */
>  		plane->crtc_x = 0;
>  		plane->crtc_y = 0;
> @@ -1784,6 +1776,9 @@ void igt_plane_set_fb(igt_plane_t *plane, struct
> igt_fb *fb)
>  		fb->src_y = 0;
>  		fb->src_w = fb->width;
>  		fb->src_h = fb->height;
> +	} else {
> +		plane->crtc_w = 0;
> +		plane->crtc_h = 0;
>  	}
Existing code is simply setting fb src position and plane crtc position to 0s (top left)
and src size as fb size and crtc size as plane size to start a fb with a plane. Then individual
test can change them to whatever fb position/size and plane position/size as it wants.
As I commented to 3/4 patch, if these initializations are removed, then all tests to be
updated to explicitly set them.

As a side note, is there any reason for having two patches 2/4 and 3/4 modifying
same lines of code instead of a single patch?

> 
>  	plane->fb_changed = true;
> --
> 2.3.5

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2015-05-06 20:56 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-05  9:53 [PATCH v2 i-g-t 1/4] igt_kms: Avoid NULL ptr deref when commiting disabled planes Tvrtko Ursulin
2015-05-05  9:53 ` [PATCH i-g-t 2/4] igt_kms: Merge condition in igt_plane_set_fb Tvrtko Ursulin
2015-05-06 20:56   ` Konduru, Chandra [this message]
2015-05-07  9:06     ` Tvrtko Ursulin
2015-05-05  9:53 ` [PATCH i-g-t 3/4] igt_kms: Do not reset plane position on assigning a fb Tvrtko Ursulin
2015-05-06 19:02   ` Konduru, Chandra
2015-05-07  9:15     ` Tvrtko Ursulin
2015-05-08  0:03       ` Konduru, Chandra
2015-05-08  8:36         ` Tvrtko Ursulin
2015-05-08 17:57           ` Konduru, Chandra
2015-05-05  9:53 ` [PATCH i-g-t 4/4] kms_plane_scaling: Find the image regardless how the test is run Tvrtko Ursulin
2015-05-05 17:22   ` Konduru, Chandra
2015-05-06  9:29     ` Tvrtko Ursulin
2015-05-06 18:17       ` Konduru, Chandra
2015-05-07  8:54         ` Tvrtko Ursulin
2015-05-06 20:47 ` [PATCH v2 i-g-t 1/4] igt_kms: Avoid NULL ptr deref when commiting disabled planes Konduru, Chandra
2015-05-07  9:00   ` Tvrtko Ursulin
2015-05-07 23:45     ` Konduru, Chandra

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=76A9B330A4D78C4D99CB292C4CC06C0E36FC7484@fmsmsx101.amr.corp.intel.com \
    --to=chandra.konduru@intel.com \
    --cc=Intel-gfx@lists.freedesktop.org \
    --cc=thomas.wood@intel.com \
    --cc=tvrtko.ursulin@linux.intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.