From: "Sharma, Shashank" <shashank.sharma@intel.com>
To: Daniel Vetter <daniel@ffwll.ch>
Cc: "Vetter, Daniel" <daniel.vetter@intel.com>,
"intel-gfx@lists.freedesktop.org"
<intel-gfx@lists.freedesktop.org>,
Emil Velikov <emil.l.velikov@gmail.com>,
ML dri-devel <dri-devel@lists.freedesktop.org>
Subject: Re: [Intel-gfx] [PATCH 1/4] drm: add picture aspect ratio flags
Date: Thu, 4 Aug 2016 18:35:52 +0530 [thread overview]
Message-ID: <95ae803a-42f6-3744-a89c-7555235f1f0b@intel.com> (raw)
In-Reply-To: <20160804103621.GD6232@phenom.ffwll.local>
Thanks Daniel.
My comments, inline.
Regards
Shashank
On 8/4/2016 4:06 PM, Daniel Vetter wrote:
> On Thu, Aug 04, 2016 at 03:46:09PM +0530, Sharma, Shashank wrote:
>> Hello Emil,
>>
>> Thanks for your time.
>>
>> I have got mixed opinion on this.
>>
>> IMHO we should expose them to userspace too, as UI agents like Hardware
>> composer/X/Wayland must know what does these
>>
>> flags means, so that they can display them on the end user screen (like
>> settings menu)
>>
>> But few people even think thats its too complex to be exposed to userspace
>> agents.
>>
>> So your suggestions are welcome.
> These are flags for the internal mode representation, not for the uapi
> one. They really don't belong into the uapi header, but instead into
> include/drm/drm_modes.h. I.e. I fully concur with Emil.
> -Daniel
Please correct me if I am missing anything, but In that case, how will
HWC/X apply a modeset
1920x1080@60 16:9 (Not 1920x1080@60 4:3)
Regards
Shashank
>> Regards
>> Shashank
>>
>> On 8/4/2016 3:12 PM, Emil Velikov wrote:
>>> On 3 August 2016 at 11:56, Shashank Sharma <shashank.sharma@intel.com> wrote:
>>>
>>>> --- a/include/uapi/drm/drm_mode.h
>>>> +++ b/include/uapi/drm/drm_mode.h
>>>> +
>>>> +/* Aspect ratio flag bitmask (4 bits 22:19) */
>>>> +#define DRM_MODE_FLAG_PARMASK (0x0F<<19)
>>>> +#define DRM_MODE_FLAG_PARNONE \
>>>> + (DRM_MODE_PICTURE_ASPECT_NONE << 19)
>>>> +#define DRM_MODE_FLAG_PAR4_3 \
>>>> + (DRM_MODE_PICTURE_ASPECT_4_3 << 19)
>>>> +#define DRM_MODE_FLAG_PAR16_9 \
>>>> + (DRM_MODE_PICTURE_ASPECT_16_9 << 19)
>>>>
>>> Afaict all these flags are internal/implementation specific thus we
>>> shouldn't expose them to userspace. Right ?
>>>
>>> -Emil
>> _______________________________________________
>> Intel-gfx mailing list
>> Intel-gfx@lists.freedesktop.org
>> https://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2016-08-04 13:05 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-03 10:56 [PATCH 0/4]: Picture aspect ratio support in DRM layer Shashank Sharma
2016-08-03 10:56 ` [PATCH 1/4] drm: add picture aspect ratio flags Shashank Sharma
2016-08-03 17:40 ` Sean Paul
2016-08-04 9:19 ` Sharma, Shashank
2016-08-04 9:42 ` Emil Velikov
2016-08-04 10:16 ` Sharma, Shashank
2016-08-04 10:36 ` [Intel-gfx] " Daniel Vetter
2016-08-04 13:05 ` Sharma, Shashank [this message]
2016-08-04 16:04 ` Daniel Vetter
2016-08-04 11:34 ` Emil Velikov
2016-08-04 13:15 ` Sharma, Shashank
2016-08-04 14:31 ` Emil Velikov
2016-08-04 16:09 ` Daniel Vetter
2016-08-05 3:37 ` [Intel-gfx] " Sharma, Shashank
2016-08-09 13:12 ` Jose Abreu
2016-08-09 13:44 ` [Intel-gfx] " Daniel Vetter
2016-08-09 13:57 ` Sharma, Shashank
2016-08-18 10:15 ` Emil Velikov
2016-08-03 10:56 ` [PATCH 2/4] drm: Add aspect ratio parsing in DRM layer Shashank Sharma
2016-08-03 17:44 ` Sean Paul
2016-08-04 9:22 ` Sharma, Shashank
2016-08-03 10:56 ` [PATCH 3/4] video: Add new aspect ratios for HDMI 2.0 Shashank Sharma
2016-08-03 17:47 ` Sean Paul
2016-08-03 10:56 ` [PATCH 4/4] drm: Add and handle new aspect ratios in DRM layer Shashank Sharma
2016-08-03 17:47 ` [Intel-gfx] " Sean Paul
2016-08-03 11:48 ` [PATCH 0/4]: Picture aspect ratio support " Daniel Vetter
2016-08-03 13:08 ` Jose Abreu
2016-08-03 15:47 ` Sharma, Shashank
2016-08-04 14:16 ` Jose Abreu
2016-08-04 14:29 ` Sharma, Shashank
2016-08-04 15:13 ` Jose Abreu
2016-08-03 15:33 ` Sharma, Shashank
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=95ae803a-42f6-3744-a89c-7555235f1f0b@intel.com \
--to=shashank.sharma@intel.com \
--cc=daniel.vetter@intel.com \
--cc=daniel@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=emil.l.velikov@gmail.com \
--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