aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
diff options
context:
space:
mode:
authorLeo Li <[email protected]>2019-03-21 14:36:07 +0000
committerAlex Deucher <[email protected]>2019-04-03 16:57:14 +0000
commit805ab8f7da89c7f2a2ad39b149ac82beb62ba513 (patch)
tree3269e03ffba851239dd14d9b570242a42f13a77d /drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
parentdrm/amd/display: Fix multi-thread writing to 1 state (diff)
downloadkernel-805ab8f7da89c7f2a2ad39b149ac82beb62ba513.tar.gz
kernel-805ab8f7da89c7f2a2ad39b149ac82beb62ba513.zip
drm/amd/display: Fix "dc has no member named dml" compile error
For DCN disabled builds, dc->dml is stripped out. Therefore, guard usage in dc_create_state() with CONFIG_DRM_AMD_DC_DCN1_0. It fixes the following error: drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c: In function 'dc_create_state': >> drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c:1237:34: error: 'struct dc' has no member named 'dml' memcpy(&context->bw_ctx.dml, &dc->dml, sizeof(struct display_mode_lib)); ^~ Signed-off-by: Leo Li <[email protected]> Acked-by: Alex Deucher <[email protected]> Reviewed-by: Nicholas Kazlauskas <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c')
0 files changed, 0 insertions, 0 deletions