Commit 4b6b7437 authored by Mario Kleiner's avatar Mario Kleiner Committed by Alex Deucher

drm/amd/display: Enable fp16 also on DCE-8/10/11.

The hw supports fp16, this is not only useful for HDR,
but also for standard dynamic range displays, because
it allows to get more precise color reproduction with
about 11 - 12 bpc linear precision in the unorm range
0.0 - 1.0.

Working fp16 scanout+display (and HDR over HDMI) was
verified on a DCE-8 asic, so i assume that the more
recent DCE-10/11 will work equally well, now that
format-specific plane scaling constraints are properly
enforced, e.g., the inability of fp16 to scale on older
hw like DCE-8 to DCE-11.
Reviewed-by: default avatarNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Signed-off-by: default avatarMario Kleiner <mario.kleiner.de@gmail.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 6300b3bd
...@@ -385,7 +385,7 @@ static const struct dc_plane_cap plane_cap = { ...@@ -385,7 +385,7 @@ static const struct dc_plane_cap plane_cap = {
.pixel_format_support = { .pixel_format_support = {
.argb8888 = true, .argb8888 = true,
.nv12 = false, .nv12 = false,
.fp16 = false .fp16 = true
}, },
.max_upscale_factor = { .max_upscale_factor = {
......
...@@ -410,7 +410,7 @@ static const struct dc_plane_cap plane_cap = { ...@@ -410,7 +410,7 @@ static const struct dc_plane_cap plane_cap = {
.pixel_format_support = { .pixel_format_support = {
.argb8888 = true, .argb8888 = true,
.nv12 = false, .nv12 = false,
.fp16 = false .fp16 = true
}, },
.max_upscale_factor = { .max_upscale_factor = {
......
...@@ -402,7 +402,7 @@ static const struct dc_plane_cap plane_cap = { ...@@ -402,7 +402,7 @@ static const struct dc_plane_cap plane_cap = {
.pixel_format_support = { .pixel_format_support = {
.argb8888 = true, .argb8888 = true,
.nv12 = false, .nv12 = false,
.fp16 = false .fp16 = true
}, },
.max_upscale_factor = { .max_upscale_factor = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment