Browse Source

amdgpu/dc: drop dml_util_is_420

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>
Dave Airlie 7 năm trước cách đây
mục cha
commit
b2484b6237

+ 0 - 33
drivers/gpu/drm/amd/display/dc/dml/dml_common_defs.c

@@ -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;
-}

+ 0 - 1
drivers/gpu/drm/amd/display/dc/dml/dml_common_defs.h

@@ -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);