Commit 3bc73bc0 authored by Alex Hung's avatar Alex Hung Committed by Alex Deucher

drm/amd/display: Fix uninitialized variables in dcn401

[WHAT & HOW]
surf_linear_128_l/c are used in CalculateBytePerPixelAndBlockSizes
before they are assigned, so initializing them before passing them into
the function.

This fixes 2 UNINIT issues reported by Coverity.
Reviewed-by: default avatarRodrigo Siqueira <rodrigo.siqueira@amd.com>
Signed-off-by: default avatarAlex Hung <alex.hung@amd.com>
Tested-by: default avatarDaniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 51dbe023
...@@ -11521,8 +11521,8 @@ void dml2_core_calcs_get_dpte_row_height( ...@@ -11521,8 +11521,8 @@ void dml2_core_calcs_get_dpte_row_height(
unsigned int MacroTileWidthC; unsigned int MacroTileWidthC;
unsigned int MacroTileHeightY; unsigned int MacroTileHeightY;
unsigned int MacroTileHeightC; unsigned int MacroTileHeightC;
bool surf_linear_128_l; bool surf_linear_128_l = false;
bool surf_linear_128_c; bool surf_linear_128_c = false;
CalculateBytePerPixelAndBlockSizes( CalculateBytePerPixelAndBlockSizes(
SourcePixelFormat, SourcePixelFormat,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment