mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-27 03:49:57 -04:00
drm/amd/display: remove context->dml2 dependency from DML21 wrapper
[Why] When the DML2 wrapper explicitly accesses context->dml2, that creates a dependency on where dc saves the DML object. This dependency makes it harder to have multiple co-existing DML objects, which we would like to have for upcoming functionality. [How] - make all DML21 interfaces take in a DML2 object as parameter - remove all references to context->dml2, use parameter instead Reviewed-by: Jun Lei <jun.lei@amd.com> Reviewed-by: Aric Cyr <aric.cyr@amd.com> Acked-by: Roman Li <roman.li@amd.com> Signed-off-by: Joshua Aberback <joshua.aberback@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
c435bce6af
commit
cc263c3a0c
@@ -690,13 +690,13 @@ static void dml2_apply_debug_options(const struct dc *dc, struct dml2_context *d
|
||||
}
|
||||
}
|
||||
|
||||
bool dml2_validate(const struct dc *in_dc, struct dc_state *context, bool fast_validate)
|
||||
bool dml2_validate(const struct dc *in_dc, struct dc_state *context, struct dml2_context *dml2, bool fast_validate)
|
||||
{
|
||||
bool out = false;
|
||||
|
||||
if (!(context->bw_ctx.dml2))
|
||||
if (!dml2)
|
||||
return false;
|
||||
dml2_apply_debug_options(in_dc, context->bw_ctx.dml2);
|
||||
dml2_apply_debug_options(in_dc, dml2);
|
||||
|
||||
|
||||
/* Use dml_validate_only for fast_validate path */
|
||||
|
||||
Reference in New Issue
Block a user