Skip to contentSkip to conversation

amdgpu/dc: drop dml_util_is_420

PATCH In review Dave Airlie 2 participants 2 messages Sep 28, 2017 1 message not in the archive

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 amdgpu/dc: drop dml_util_is_420

From: Dave Airlie <[email protected]>

This is unused code.

---
 .../gpu/drm/amd/display/dc/dml/dml_common_defs.c   | 33 ----------------------
 .../gpu/drm/amd/display/dc/dml/dml_common_defs.h   |  1 -
 2 files changed, 34 deletions(-)
drivers/gpu/drm/amd/display/dc/dml/dml_common_defs.c +0 -33
index c242b8d..7c0eb52 100644
@@ -59,36 +59,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;
-}
drivers/gpu/drm/amd/display/dc/dml/dml_common_defs.h +0 -1
index c621f83..a2da3da 100644
@@ -32,7 +32,6 @@
 
 #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);
Signature · 6 lines
2.9.4

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Reviewed-by
#2 lore raw
In reply to a message not in the archive
Quoted 5 lines · Dave Airlie

From: Dave Airlie <[email protected]>

This is unused code.

Harry

Quoted 52 lines
---
 .../gpu/drm/amd/display/dc/dml/dml_common_defs.c   | 33 ----------------------
 .../gpu/drm/amd/display/dc/dml/dml_common_defs.h   |  1 -
 2 files changed, 34 deletions(-)
drivers/gpu/drm/amd/display/dc/dml/dml_common_defs.c +0 -33
index c242b8d..7c0eb52 100644
@@ -59,36 +59,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;
-}
drivers/gpu/drm/amd/display/dc/dml/dml_common_defs.h +0 -0
index c621f83..a2da3da 100644

drivers/gpu/drm/amd/display/dc/dml/dml_common_defs.h line 37

Quoted 7 lines
drivers/gpu/drm/amd/display/dc/dml/dml_common_defs.h +0 -1
@@ -32,7 +32,6 @@
 
 #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);

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx