drm/amd/display: add const qualifiers to watermark params struct

[why]
There are few non const input pointer fields. Setting them to const to
prevent future modification of read-only data.

Reviewed-by: Dillon Varone <dillon.varone@amd.com>
Signed-off-by: Wenjing Liu <wenjing.liu@amd.com>
Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Tested-by: Dan Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Wenjing Liu 2026-03-26 17:13:27 -04:00 committed by Alex Deucher
parent 2b104fc31b
commit dd2308c1d0

View File

@ -1721,30 +1721,30 @@ struct dml2_core_calcs_CalculateWatermarksMALLUseAndDRAMSpeedChangeSupport_param
double ReturnBW;
bool SynchronizeTimings;
bool SynchronizeDRRDisplaysForUCLKPStateChange;
unsigned int *dpte_group_bytes;
const unsigned int *dpte_group_bytes;
struct dml2_core_internal_SOCParametersList mmSOCParameters;
unsigned int WritebackChunkSize;
double SOCCLK;
double DCFClkDeepSleep;
unsigned int *DETBufferSizeY;
unsigned int *DETBufferSizeC;
unsigned int *SwathHeightY;
unsigned int *SwathHeightC;
unsigned int *SwathWidthY;
unsigned int *SwathWidthC;
unsigned int *DPPPerSurface;
double *BytePerPixelDETY;
double *BytePerPixelDETC;
unsigned int *DSTXAfterScaler;
unsigned int *DSTYAfterScaler;
const unsigned int *DETBufferSizeY;
const unsigned int *DETBufferSizeC;
const unsigned int *SwathHeightY;
const unsigned int *SwathHeightC;
const unsigned int *SwathWidthY;
const unsigned int *SwathWidthC;
const unsigned int *DPPPerSurface;
const double *BytePerPixelDETY;
const double *BytePerPixelDETC;
const unsigned int *DSTXAfterScaler;
const unsigned int *DSTYAfterScaler;
bool UnboundedRequestEnabled;
unsigned int CompressedBufferSizeInkByte;
bool max_outstanding_when_urgent_expected;
unsigned int max_outstanding_requests;
unsigned int max_request_size_bytes;
unsigned int *meta_row_height_l;
unsigned int *meta_row_height_c;
enum dml2_pstate_method *uclk_pstate_switch_modes;
const unsigned int max_outstanding_requests;
const unsigned int max_request_size_bytes;
const unsigned int *meta_row_height_l;
const unsigned int *meta_row_height_c;
const enum dml2_pstate_method *uclk_pstate_switch_modes;
// Output
struct dml2_core_internal_watermarks *Watermark;