From: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
To: "Srinivas, Vidya" <vidya.srinivas@intel.com>,
"Kristian Høgsberg" <hoegsberg@gmail.com>
Cc: "intel-gfx@lists.freedesktop.org" <intel-gfx@lists.freedesktop.org>
Subject: Re: [PATCH v5 0/6] Enable NV12 support
Date: Wed, 2 May 2018 10:58:41 +0200 [thread overview]
Message-ID: <1dfe8d48-7b9a-64a0-ffda-856516cdfff9@linux.intel.com> (raw)
In-Reply-To: <F653A0A18852B74D88578FA2EB7094EAB687E701@BGSMSX108.gar.corp.intel.com>
Hey,
Op 02-05-18 om 04:43 schreef Srinivas, Vidya:
>
>> -----Original Message-----
>> From: Kristian Høgsberg [mailto:hoegsberg@gmail.com]
>> Sent: Monday, April 30, 2018 11:58 PM
>> To: Srinivas, Vidya <vidya.srinivas@intel.com>
>> Cc: intel-gfx@lists.freedesktop.org
>> Subject: Re: [Intel-gfx] [PATCH v5 0/6] Enable NV12 support
>>
>> On Thu, Apr 19, 2018 at 3:34 AM Vidya Srinivas <vidya.srinivas@intel.com>
>> wrote:
>>
>>> Enabling NV12 support:
>>> - Framebuffer creation
>>> - Primary and Sprite plane support
>>> Patch series depend on Enable display workaround 827 patch mentioned
>>> below submitted by Maarten
>> How are we looking on being able to land these last NV12 patches?
> I think Maarten is working on this series related https://patchwork.freedesktop.org/series/42476/
> I guess all would go in together?
I did some testing and with just the nv12 series and my series I don't hit underruns.
I made the following changes to your series on top of mine:
skl_update_scaler check removed, was done in patch 6 instead.
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index ad13c797e946..0a651f26f827 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -4861,8 +4861,7 @@ skl_update_scaler(struct intel_crtc_state *crtc_state, bool force_detach,
}
if (plane_scaler_check && pixel_format == DRM_FORMAT_NV12 &&
- (src_h < SKL_MIN_YUV_420_SRC_H || (src_w % 4) != 0 ||
- (src_h % 4) != 0)) {
+ (src_h < SKL_MIN_YUV_420_SRC_H || src_w < SKL_MIN_YUV_420_SRC_W)) {
DRM_DEBUG_KMS("NV12: src dimensions not met\n");
return -EINVAL;
}
And fixup sprite format.
diff --git a/drivers/gpu/drm/i915/intel_sprite.c b/drivers/gpu/drm/i915/intel_sprite.c
index dcba946af2ff..573ef6932633 100644
--- a/drivers/gpu/drm/i915/intel_sprite.c
+++ b/drivers/gpu/drm/i915/intel_sprite.c
@@ -1011,6 +1011,7 @@ intel_check_sprite_plane(struct intel_plane *plane,
src->y2 = (src_y + src_h) << 16;
if (intel_format_is_yuv(fb->format->format) &&
+ fb->format->format != DRM_FORMAT_NV12 &&
(src_x % 2 || src_w % 2)) {
DRM_DEBUG_KMS("src x/w (%u, %u) must be a multiple of 2 for YUV planes\n",
src_x, src_w);
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2018-05-02 8:58 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-19 10:29 [PATCH v5 0/6] Enable NV12 support Vidya Srinivas
2018-04-19 10:29 ` [PATCH v5 1/6] drm/i915: Enable display workaround 827 for all planes, v2 Vidya Srinivas
2018-04-19 10:29 ` [PATCH v5 2/6] drm/i915: Add NV12 as supported format for primary plane Vidya Srinivas
2018-04-19 10:29 ` [PATCH v5 3/6] drm/i915: Add NV12 as supported format for sprite plane Vidya Srinivas
2018-04-19 10:29 ` [PATCH v5 4/6] drm/i915: Add NV12 support to intel_framebuffer_init Vidya Srinivas
2018-04-19 10:29 ` [PATCH v5 5/6] drm/i915: Enable Display WA 0528 Vidya Srinivas
2018-04-19 10:29 ` [PATCH v5 6/6] drm/i915: Add skl_check_nv12_surface for NV12 Vidya Srinivas
2018-04-19 10:57 ` ✗ Fi.CI.CHECKPATCH: warning for Enable NV12 support (rev3) Patchwork
2018-04-19 11:13 ` ✓ Fi.CI.BAT: success " Patchwork
2018-04-19 14:18 ` ✓ Fi.CI.IGT: " Patchwork
2018-04-30 18:28 ` [PATCH v5 0/6] Enable NV12 support Kristian Høgsberg
2018-05-02 2:43 ` Srinivas, Vidya
2018-05-02 8:58 ` Maarten Lankhorst [this message]
2018-05-02 10:16 ` Srinivas, Vidya
2018-05-03 8:58 ` Srinivas, Vidya
2018-05-04 13:15 ` Maarten Lankhorst
2018-05-05 13:09 ` Srinivas, Vidya
-- strict thread matches above, loose matches on Subject: below --
2018-04-19 10:22 Vidya Srinivas
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=1dfe8d48-7b9a-64a0-ffda-856516cdfff9@linux.intel.com \
--to=maarten.lankhorst@linux.intel.com \
--cc=hoegsberg@gmail.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=vidya.srinivas@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox