amdgpu/dc: drop dml_util_is_420
authorDave Airlie <airlied@redhat.com>
Thu, 28 Sep 2017 00:55:25 +0000 (10:55 +1000)
committerAlex Deucher <alexander.deucher@amd.com>
Sat, 21 Oct 2017 20:52:55 +0000 (16:52 -0400)
This is unused code.

Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml/dml_common_defs.c
drivers/gpu/drm/amd/display/dc/dml/dml_common_defs.h

index 101fb6f19c4346644cb9e1417e3c4620221d902e..1683514ed0e37557b059ae06b4e0985c8965a914 100644 (file)
@@ -60,36 +60,3 @@ unsigned int dml_round_to_multiple(
        else
                return (num - remainder);
 }
-
-bool dml_util_is_420(enum source_format_class sorce_format)
-{
-       bool val = false;
-
-       switch (sorce_format) {
-       case dm_444_16:
-               val = false;
-               break;
-       case dm_444_32:
-               val = false;
-               break;
-       case dm_444_64:
-               val = false;
-               break;
-       case dm_420_8:
-               val = true;
-               break;
-       case dm_420_10:
-               val = true;
-               break;
-       case dm_422_8:
-               val = false;
-               break;
-       case dm_422_10:
-               val = false;
-               break;
-       default:
-               BREAK_TO_DEBUGGER();
-       }
-
-       return val;
-}
index a55f4d5af36cf882f5d86e301bfd4f3a2c6309f4..e11d123ab8d9ce232c613c7e31c12c0feabfdbbb 100644 (file)
@@ -34,7 +34,6 @@
 #define dml_print(str, ...) {dm_logger_write(mode_lib->logger, LOG_DML, str, ##__VA_ARGS__); }
 #define DTRACE(str, ...) {dm_logger_write(mode_lib->logger, LOG_DML, str, ##__VA_ARGS__); }
 
-bool dml_util_is_420(enum source_format_class sorce_format);
 double dml_round(double a);
 unsigned int dml_round_to_multiple(
                        unsigned int num, unsigned int multiple, bool up);