Unverified Commit d43ec5c3 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!12465 drm/amd/display: Initialize get_bytes_per_element's default to 1

parents b3249d39 bb425b14
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -78,7 +78,7 @@ static void calculate_ttu_cursor(struct display_mode_lib *mode_lib,

static unsigned int get_bytes_per_element(enum source_format_class source_format, bool is_chroma)
{
	unsigned int ret_val = 0;
	unsigned int ret_val = 1;

	if (source_format == dm_444_16) {
		if (!is_chroma)
+1 −1
Original line number Diff line number Diff line
@@ -53,7 +53,7 @@ static void calculate_ttu_cursor(

static unsigned int get_bytes_per_element(enum source_format_class source_format, bool is_chroma)
{
	unsigned int ret_val = 0;
	unsigned int ret_val = 1;

	if (source_format == dm_444_16) {
		if (!is_chroma)