aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/atom.c
diff options
context:
space:
mode:
authorThomas Zimmermann <[email protected]>2023-10-09 14:06:34 +0000
committerThomas Zimmermann <[email protected]>2023-11-14 09:17:22 +0000
commite7c814d305e110d6db3f440d14490a8d0d9477d9 (patch)
treebc982249e0f779773f53e8e695e99ae48aafa49e /drivers/gpu/drm/amd/amdgpu/atom.c
parentdrm/ofdrm: Preallocate format-conversion buffer in atomic_check (diff)
downloadkernel-e7c814d305e110d6db3f440d14490a8d0d9477d9.tar.gz
kernel-e7c814d305e110d6db3f440d14490a8d0d9477d9.zip
drm/simpledrm: Preallocate format-conversion buffer in atomic_check
Preallocate the format-conversion state's storage in the plane's atomic_check function if a format conversion is necessary. Allows the update to fail if no memory is available. Avoids the same allocation within atomic_update, which may not fail. Also inline drm_plane_helper_atomic_check() into the driver and thus return early for invisible planes. Avoids memory allocation entirely in this case. Signed-off-by: Thomas Zimmermann <[email protected]> Reviewed-by: Javier Martinez Canillas <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/atom.c')
0 files changed, 0 insertions, 0 deletions