From: sonika <sonika.jindal@intel.com>
To: Daniel Vetter <daniel@ffwll.ch>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 1/3] drm/i915/skl: Allow universal planes to position
Date: Mon, 09 Mar 2015 08:33:27 +0530 [thread overview]
Message-ID: <54FD0D7F.9000204@intel.com> (raw)
In-Reply-To: <20150305125431.GB18775@phenom.ffwll.local>
On Thursday 05 March 2015 06:24 PM, Daniel Vetter wrote:
> On Thu, Mar 05, 2015 at 02:51:26PM +0530, Sonika Jindal wrote:
>> Signed-off-by: Sonika Jindal <sonika.jindal@intel.com>
> Imo this needs a little more commit message, and more important it needs
> igt test coverage. Best approach there is probably to take the plane test
> we have already and extend it to the primary plane.
> -Daniel
This is just to take care of the case when the size of the fb is smaller
than the crtc.
I have extended the rotation test (yet to be posted), to create a
smaller primary plane fb to be used for 90/270 rotation.
Since we still set position to 0 for primary plane, I did not add any
test case for positioning of primary plane.
That can be added as a separate activity when positioning support is added.
Right now this is just to allow smaller fb for primary plane which is
possible with universal planes gen >=9.
Regards,
Sonika
>> ---
>> drivers/gpu/drm/i915/intel_display.c | 7 ++++++-
>> 1 file changed, 6 insertions(+), 1 deletion(-)
>>
>> diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
>> index 437a679..e1b0c4d 100644
>> --- a/drivers/gpu/drm/i915/intel_display.c
>> +++ b/drivers/gpu/drm/i915/intel_display.c
>> @@ -12183,16 +12183,21 @@ intel_check_primary_plane(struct drm_plane *plane,
>> struct drm_rect *dest = &state->dst;
>> struct drm_rect *src = &state->src;
>> const struct drm_rect *clip = &state->clip;
>> + bool can_position = false;
>> int ret;
>>
>> crtc = crtc ? crtc : plane->crtc;
>> intel_crtc = to_intel_crtc(crtc);
>>
>> + if (INTEL_INFO(dev)->gen >= 9)
>> + can_position = true;
>> +
>> ret = drm_plane_helper_check_update(plane, crtc, fb,
>> src, dest, clip,
>> DRM_PLANE_HELPER_NO_SCALING,
>> DRM_PLANE_HELPER_NO_SCALING,
>> - false, true, &state->visible);
>> + can_position, true,
>> + &state->visible);
>> if (ret)
>> return ret;
>>
>> --
>> 1.7.10.4
>>
>> _______________________________________________
>> Intel-gfx mailing list
>> Intel-gfx@lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2015-03-09 3:11 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-05 9:21 [PATCH 1/3] drm/i915/skl: Allow universal planes to position Sonika Jindal
2015-03-05 9:21 ` [PATCH 2/3] drm/i915: Using plane state parameters instead of pipe's Sonika Jindal
2015-03-05 13:01 ` Daniel Vetter
2015-03-05 9:21 ` [PATCH 3/3] drm/i915/skl: Support for 90/270 rotation Sonika Jindal
2015-03-05 12:56 ` Daniel Vetter
2015-03-05 13:08 ` Ville Syrjälä
2015-03-05 15:29 ` Daniel Vetter
2015-03-05 15:56 ` Ville Syrjälä
2015-03-06 17:03 ` Daniel Vetter
2015-03-06 17:22 ` Ville Syrjälä
2015-03-06 17:38 ` Daniel Vetter
2015-03-05 12:54 ` [PATCH 1/3] drm/i915/skl: Allow universal planes to position Daniel Vetter
2015-03-09 3:03 ` sonika [this message]
2015-03-09 8:46 ` Daniel Vetter
2015-03-09 15:20 ` Ville Syrjälä
2015-03-09 15:31 ` Daniel Vetter
2015-03-10 3:53 ` sonika
2015-03-10 10:10 ` Daniel Vetter
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=54FD0D7F.9000204@intel.com \
--to=sonika.jindal@intel.com \
--cc=daniel@ffwll.ch \
--cc=intel-gfx@lists.freedesktop.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox