drm/amd/display: Refactor DPP_SET_OUTPUT_TRANSFER_FUNC to drop pipe_ctx[why]Pipe_ctx shouldn't be passed as block sequence block parameter.[how]Adjust arguments for set_output_transfer_func and
drm/amd/display: Refactor DPP_SET_OUTPUT_TRANSFER_FUNC to drop pipe_ctx[why]Pipe_ctx shouldn't be passed as block sequence block parameter.[how]Adjust arguments for set_output_transfer_func and implementations.Reviewed-by: Alvin Lee <alvin.lee2@amd.com>Signed-off-by: Tomasz Siemek <tomasz.siemek@amd.com>Signed-off-by: Wayne Lin <wayne.lin@amd.com>Tested-by: Dan Wheeler <daniel.wheeler@amd.com>Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
show more ...
drm/amd/display: Refactor surface_update_flags to flat struct with helpers[Why]The union surface_update_flags type uses a union with a rawuint32_t member to allow bulk clear/set/test operations o
drm/amd/display: Refactor surface_update_flags to flat struct with helpers[Why]The union surface_update_flags type uses a union with a rawuint32_t member to allow bulk clear/set/test operations on thebitfield. This couples the struct layout to a specific integerwidth, breaks when the number of flag bits exceeds 32, andscatters raw-access patterns across many call sites. Replacingthe union with a plain struct and adding explicit helperfunctions makes the intent clearer and prepares the code forfuture flag-set expansion.[How]Rename union surface_update_flags to struct pipe_update_bitsand remove the union wrapper, the .bits sub-struct, and the.raw member. Add inline helpers in dc.h:surface_update_flags_clear(), surface_update_flags_set_full(),and surface_update_flags_is_any_set() that operate on the newstruct via memset/memcmp. Add stream_update_flags_clear() andstream_update_flags_set_full() in dc_stream.h for the streamupdate flags union. Update all callers: change the type name,replace .bits.field with .field, replace .raw = 0 with theclear helper, replace .raw = 0xFFFFFFFF with the set_fullhelper, and replace .raw boolean tests with is_any_set.Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>Signed-off-by: Rafal Ostrowski <rafal.ostrowski@amd.com>Signed-off-by: Chenyu Chen <chen-yu.chen@amd.com>Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drm/amd/display/dc: reclassify DCE6 resources and hw sequencerClassify DCE6 resource and sequencer as they are for other DCE versionsPut dce60_resource.c and .h under amd/display/dc/resource/dce6
drm/amd/display/dc: reclassify DCE6 resources and hw sequencerClassify DCE6 resource and sequencer as they are for other DCE versionsPut dce60_resource.c and .h under amd/display/dc/resource/dce60Put and rename dce60_hw_sequencer.c and .h under amd/display/dc/hwss/dce60v2: fix build when CONFIG_DRM_AMD_DC_SI=n (Alex)Signed-off-by: Alexandre Demers <alexandre.f.demers@gmail.com>Signed-off-by: Alex Deucher <alexander.deucher@amd.com>