drm/amd/display: Use DC_LOG_DC in the trasform pixel function
authorjsg <jsg@openbsd.org>
Thu, 15 Jun 2023 02:54:54 +0000 (02:54 +0000)
committerjsg <jsg@openbsd.org>
Thu, 15 Jun 2023 02:54:54 +0000 (02:54 +0000)
From Rodrigo Siqueira
34813f041d0e627905f47ccadc94a7fc566104d0 in linux-6.1.y/6.1.30
7222f5841ff49709ca666b05ff336776e0664a20 in mainline linux

sys/dev/pci/drm/amd/display/dc/dce/dce_transform.c

index d9fd4ec..670d5ab 100644 (file)
@@ -1009,7 +1009,7 @@ static void dce_transform_set_pixel_storage_depth(
                color_depth = COLOR_DEPTH_101010;
                pixel_depth = 0;
                expan_mode  = 1;
-               BREAK_TO_DEBUGGER();
+               DC_LOG_DC("The pixel depth %d is not valid, set COLOR_DEPTH_101010 instead.", depth);
                break;
        }
 
@@ -1023,8 +1023,7 @@ static void dce_transform_set_pixel_storage_depth(
        if (!(xfm_dce->lb_pixel_depth_supported & depth)) {
                /*we should use unsupported capabilities
                 *  unless it is required by w/a*/
-               DC_LOG_WARNING("%s: Capability not supported",
-                       __func__);
+               DC_LOG_DC("%s: Capability not supported", __func__);
        }
 }