amd-gfx.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* Enable fp16 scanout on DCE 8 and DCE 10
@ 2020-06-07  4:05 Mario Kleiner
  2020-06-07  4:05 ` [PATCH 1/2] drm/amd/display: Enable fp16 also on DCE-10 Mario Kleiner
  2020-06-07  4:05 ` [PATCH 2/2] drm/amd/display: Enable fp16 also on DCE-8 Mario Kleiner
  0 siblings, 2 replies; 3+ messages in thread
From: Mario Kleiner @ 2020-06-07  4:05 UTC (permalink / raw)
  To: dri-devel, amd-gfx
  Cc: alexander.deucher, mario.kleiner.de, nicholas.kazlauskas

So i'm sending these on the off-chance that DCE-8/10 do
support fp16 scanout without hw bugs. Would be nice to
enable this if it is supported, even if the hw can't do
HDR. This is also useful for non-HDR to get effectively
11 bpc precision from the fb to the display outputs for
more precise color reproduction.

thanks,
-mario


_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

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

* [PATCH 1/2] drm/amd/display: Enable fp16 also on DCE-10.
  2020-06-07  4:05 Enable fp16 scanout on DCE 8 and DCE 10 Mario Kleiner
@ 2020-06-07  4:05 ` Mario Kleiner
  2020-06-07  4:05 ` [PATCH 2/2] drm/amd/display: Enable fp16 also on DCE-8 Mario Kleiner
  1 sibling, 0 replies; 3+ messages in thread
From: Mario Kleiner @ 2020-06-07  4:05 UTC (permalink / raw)
  To: dri-devel, amd-gfx
  Cc: alexander.deucher, mario.kleiner.de, nicholas.kazlauskas

Assuming the hw supports fp16, this would be also
useful for standard dynamic range displays, not
only for HDR use cases, because it would allow
to get more precise color reproduction with about
~11 bpc linear precision in the unorm range
0.0 -1.0.

Signed-off-by: Mario Kleiner <mario.kleiner.de@gmail.com>
---
 drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c b/drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c
index a28c4ae0f259..10bb4e6e7bac 100644
--- a/drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c
+++ b/drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c
@@ -385,7 +385,7 @@ static const struct dc_plane_cap plane_cap = {
 	.pixel_format_support = {
 			.argb8888 = true,
 			.nv12 = false,
-			.fp16 = false
+			.fp16 = true
 	},
 
 	.max_upscale_factor = {
-- 
2.24.0

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

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

* [PATCH 2/2] drm/amd/display: Enable fp16 also on DCE-8.
  2020-06-07  4:05 Enable fp16 scanout on DCE 8 and DCE 10 Mario Kleiner
  2020-06-07  4:05 ` [PATCH 1/2] drm/amd/display: Enable fp16 also on DCE-10 Mario Kleiner
@ 2020-06-07  4:05 ` Mario Kleiner
  1 sibling, 0 replies; 3+ messages in thread
From: Mario Kleiner @ 2020-06-07  4:05 UTC (permalink / raw)
  To: dri-devel, amd-gfx
  Cc: alexander.deucher, mario.kleiner.de, nicholas.kazlauskas

Assuming the hw supports fp16, this would be also
useful for standard dynamic range displays, not
only for HDR use cases, because it would allow
to get more precise color reproduction with about
~11 bpc linear precision in the unorm range
0.0 -1.0.

Signed-off-by: Mario Kleiner <mario.kleiner.de@gmail.com>
---
 drivers/gpu/drm/amd/display/dc/dce80/dce80_resource.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/display/dc/dce80/dce80_resource.c b/drivers/gpu/drm/amd/display/dc/dce80/dce80_resource.c
index a19be9de2df7..0dcea3106886 100644
--- a/drivers/gpu/drm/amd/display/dc/dce80/dce80_resource.c
+++ b/drivers/gpu/drm/amd/display/dc/dce80/dce80_resource.c
@@ -402,7 +402,7 @@ static const struct dc_plane_cap plane_cap = {
 	.pixel_format_support = {
 			.argb8888 = true,
 			.nv12 = false,
-			.fp16 = false
+			.fp16 = true
 	},
 
 	.max_upscale_factor = {
-- 
2.24.0

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

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

end of thread, other threads:[~2020-06-07  4:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-07  4:05 Enable fp16 scanout on DCE 8 and DCE 10 Mario Kleiner
2020-06-07  4:05 ` [PATCH 1/2] drm/amd/display: Enable fp16 also on DCE-10 Mario Kleiner
2020-06-07  4:05 ` [PATCH 2/2] drm/amd/display: Enable fp16 also on DCE-8 Mario Kleiner

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).