intel-gfx.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [Intel-gfx] New uAPI for color management proposal and feedback request v2
@ 2021-08-03  9:38 Werner Sembach
  2021-09-16  9:24 ` Pekka Paalanen
  0 siblings, 1 reply; 2+ messages in thread
From: Werner Sembach @ 2021-08-03  9:38 UTC (permalink / raw)
  To: Deucher, Alexander, Pekka Paalanen, amd-gfx list,
	Ville Syrjälä,
	Intel Graphics Development, Maling list - DRI developers, LKML

Greetings,

Original proposal: https://www.mail-archive.com/amd-gfx@lists.freedesktop.org/msg62387.html

Abstract: Add "preferred color format", "active color format", "active bpc", and "active Broadcast RGB" drm properties,
to control color information send to the monitor.

It seems that the "preferred-" properties is not what is actually the most useful for the userspace devs.

Preferable (Note: with only a sample size of 2 people) would be a "force color format" property. If the color format is
not available for the current Monitor and GPU combo. the TEST_ONLY check should fail and the property should not be setable.

This however opens another problem: When a Monitor is disconnected and a new one is connected, the drm properties do not
get resetted. So if the old monitor did allow to set for example ycbcr420, but the new monitor does not support this
color format at all, it will stay permanently black until the drm property is set to a correct value by hand. This is
not an expected behavior imho.

So a discussion questions: Does it make sense that connector properties are keep for different Monitors?

If no: On connecting a new Monitor all atomic drm properties should be reset to a default value.

I have an idea how this could be implemented (correct me if i'm wrong): When an atomic property is attached it get
assigned an inital value. But if I understood the docu correctly, this value is ignored because atomic properties use
the getter and setter methods when their values are read or written. My implementation suggestion would be to iterate
over all attached atomic properties once a new monitor is connected and reset them to this initial value, which should
be unchanged since initialization? This assumes that besides the initial value being unused it's still a sane default
for all drivers.

Kind Regards,

Werner Sembach


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Intel-gfx] New uAPI for color management proposal and feedback request v2
  2021-08-03  9:38 [Intel-gfx] New uAPI for color management proposal and feedback request v2 Werner Sembach
@ 2021-09-16  9:24 ` Pekka Paalanen
  0 siblings, 0 replies; 2+ messages in thread
From: Pekka Paalanen @ 2021-09-16  9:24 UTC (permalink / raw)
  To: Werner Sembach
  Cc: Deucher, Alexander, amd-gfx list, Ville Syrjälä,
	Intel Graphics Development, Maling list - DRI developers, LKML,
	sebastian

[-- Attachment #1: Type: text/plain, Size: 2733 bytes --]

On Tue, 3 Aug 2021 11:38:19 +0200
Werner Sembach <wse@tuxedocomputers.com> wrote:

> Greetings,
> 
> Original proposal: https://www.mail-archive.com/amd-gfx@lists.freedesktop.org/msg62387.html
> 
> Abstract: Add "preferred color format", "active color format", "active bpc", and "active Broadcast RGB" drm properties,
> to control color information send to the monitor.
> 
> It seems that the "preferred-" properties is not what is actually the most useful for the userspace devs.
> 
> Preferable (Note: with only a sample size of 2 people) would be a "force color format" property. If the color format is
> not available for the current Monitor and GPU combo. the TEST_ONLY check should fail and the property should not be setable.
> 
> This however opens another problem: When a Monitor is disconnected and a new one is connected, the drm properties do not
> get resetted. So if the old monitor did allow to set for example ycbcr420, but the new monitor does not support this
> color format at all, it will stay permanently black until the drm property is set to a correct value by hand. This is
> not an expected behavior imho.
> 
> So a discussion questions: Does it make sense that connector properties are keep for different Monitors?
> 
> If no: On connecting a new Monitor all atomic drm properties should be reset to a default value.
> 
> I have an idea how this could be implemented (correct me if i'm wrong): When an atomic property is attached it get
> assigned an inital value. But if I understood the docu correctly, this value is ignored because atomic properties use
> the getter and setter methods when their values are read or written. My implementation suggestion would be to iterate
> over all attached atomic properties once a new monitor is connected and reset them to this initial value, which should
> be unchanged since initialization? This assumes that besides the initial value being unused it's still a sane default
> for all drivers.
> 
> Kind Regards,
> 
> Werner Sembach
> 

Hi Werner,

I just wanted to say that I appreciate the effort and something like
these are things I would likely want to use some day in Weston, but
currently I can't spend time on this since it's still so far in the
future for me. I also feel that I've said what I can without spending a
significant amount of time thinking how it should actually work.

The same goes with the thing pointed out by Sebastian, the KMS property
reset idea. Since I can't really work on it now, I'll stop shouting
about it and wait for problems to arise in the wild and see where that
leads. (Probably just patching the KMS client of the day to set a
couple more KMS properties.)


Thanks,
pq

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-09-16  9:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-03  9:38 [Intel-gfx] New uAPI for color management proposal and feedback request v2 Werner Sembach
2021-09-16  9:24 ` Pekka Paalanen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).