xrandr: Changes to 'master'
Stephane Marchesin
marcheu at kemper.freedesktop.org
Wed Apr 30 16:35:51 PDT 2014
xrandr.c | 25 +++++++------------------
1 file changed, 7 insertions(+), 18 deletions(-)
New commits:
commit 792f05ea20d5191425154470760e36dcf023c6e9
Author: Dominik Behr <dbehr at chromium.org>
Date: Tue Apr 1 18:38:05 2014 -0700
xrandr: use full range for gamma table generation
Calculate gamma table using full [0,65536) range and do not make any
assumptions about relation of gamma table size and significant bits.
Gamma table size has nothing to do with number of significant bits in hardware.
In particular we are dealing now with gamma table that has 17 entries and 8
bit precision, there are other GPUs with 10 bit precision and less than 256
entries using partial linear approximation. Deriving assumed gamma table
significant bits from size of gamma table leads to incorrect calculations and
loss of precision. Also XRandR specification never mentions that gamma tables
need to be power of 2.
Signed-off-by: Dominik Behr <dbehr at chromium.org>
Reviewed-by: Stéphane Marchesin <marcheu at chromium.org>
More information about the xorg-commit
mailing list