dri-devel.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
From: bugzilla-daemon@freedesktop.org
To: dri-devel@lists.freedesktop.org
Subject: [Bug 110677] Can't invert screen colors by adjusting the gamma ramp
Date: Tue, 14 May 2019 17:29:02 +0000	[thread overview]
Message-ID: <bug-110677-502-v1aawxmHaW@http.bugs.freedesktop.org/> (raw)
In-Reply-To: <bug-110677-502@http.bugs.freedesktop.org/>


[-- Attachment #1.1: Type: text/plain, Size: 847 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=110677

--- Comment #7 from Nicholas Kazlauskas <nicholas.kazlauskas@amd.com> ---
The issue is in the display driver.

The driver does an sRGB degamma, CTM, then sRGB regamma + user regamma - which
explains why the screen is mostly white (since the curve is inverse).

If the the degamma block was put into linear bypass and the user regamma was
applied directly to the regamma block that should give the correct result.

Not sure if mapping the legacy gamma to the full LUT would break any IGT color
or standard X11 gamma operations.

I do have some changes that fix this kind of operation for atomic userspace but
I'd have to take a look at the legacy one again to know if this is easy to
support or not.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1655 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

  parent reply	other threads:[~2019-05-14 17:29 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-14 16:37 [Bug 110677] Can't invert screen colors by adjusting the gamma ramp bugzilla-daemon
2019-05-14 16:38 ` bugzilla-daemon
2019-05-14 16:38 ` bugzilla-daemon
2019-05-14 16:40 ` bugzilla-daemon
2019-05-14 16:42 ` bugzilla-daemon
2019-05-14 16:59 ` bugzilla-daemon
2019-05-14 17:18 ` bugzilla-daemon
2019-05-14 17:19 ` bugzilla-daemon
2019-05-14 17:29 ` bugzilla-daemon [this message]
2019-06-07 15:47 ` bugzilla-daemon
2019-11-19  9:27 ` bugzilla-daemon

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=bug-110677-502-v1aawxmHaW@http.bugs.freedesktop.org/ \
    --to=bugzilla-daemon@freedesktop.org \
    --cc=dri-devel@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;
as well as URLs for NNTP newsgroup(s).