]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Gamma logic limitations causing unintended use of RAM over ROM.
authorHarmanprit Tatla <harmanprit.tatla@amd.com>
Mon, 27 May 2019 18:22:30 +0000 (14:22 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 11 Jun 2019 17:50:57 +0000 (12:50 -0500)
commit069d063169a54b81fe0441a604aae0943ce2342b
tree95d8eba622e42b26f93d02de3a887f97bcdbc87b
parent63279fa21b1f00a26affd701ea1006308f47b1fb
drm/amd/display: Gamma logic limitations causing unintended use of RAM over ROM.

[Why]
Our existing logic in deciding whether to use RAM or ROM
depends on whether we are dealing with an identity gamma ramp.

[How]
In addition to the is_identity flag
a new is_logical_identity flag has been
added. The is_identity flag now denotes
whether the OS gamma is an RGB256 identity
and the new logical identity will inidicate
that the given gamma ramp regardless of its
type is identity.

Signed-off-by: Harmanprit Tatla <harmanprit.tatla@amd.com>
Reviewed-by: Krunoslav Kovac <Krunoslav.Kovac@amd.com>
Acked-by: Anthony Koo <Anthony.Koo@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dc_hw_types.h
drivers/gpu/drm/amd/display/modules/color/color_gamma.c