aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2017-09-28 10:55:25 +1000
committerAlex Deucher <[email protected]>2017-10-21 16:52:55 -0400
commitb2484b6237ef3ed60af0400027c053ec973b60cc (patch)
treefc78b266a96c0337e88c678546cdbf67221c091a
parentc6ca4496177d89e3f6eef7d7b6200798b19250ee (diff)
amdgpu/dc: drop dml_util_is_420
This is unused code. Signed-off-by: Dave Airlie <[email protected]> Reviewed-by: Harry Wentland <[email protected]> Signed-off-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
-rw-r--r--drivers/gpu/drm/amd/display/dc/dml/dml_common_defs.c33
-rw-r--r--drivers/gpu/drm/amd/display/dc/dml/dml_common_defs.h1
2 files changed, 0 insertions, 34 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dml/dml_common_defs.c b/drivers/gpu/drm/amd/display/dc/dml/dml_common_defs.c
index 101fb6f19c43..1683514ed0e3 100644
--- a/drivers/gpu/drm/amd/display/dc/dml/dml_common_defs.c
+++ b/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;
-}
diff --git a/drivers/gpu/drm/amd/display/dc/dml/dml_common_defs.h b/drivers/gpu/drm/amd/display/dc/dml/dml_common_defs.h
index a55f4d5af36c..e11d123ab8d9 100644
--- a/drivers/gpu/drm/amd/display/dc/dml/dml_common_defs.h
+++ b/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);