drm/amdgpu/vcn: Use buffer object's deletion logic
authorLijo Lazar <lijo.lazar@amd.com>
Wed, 8 Mar 2023 07:11:22 +0000 (12:41 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 13:56:32 +0000 (09:56 -0400)
commita3edd1ac706243fe5ca1c0925ce120b5a2661975
tree7655da5e6f88e40cfd727432023e6336531ef6eb
parente7947c021a8b394677ab875288565d4dfcac779a
drm/amdgpu/vcn: Use buffer object's deletion logic

VCN DPG buffer object is intialized to NULL. If allotted, buffer object
deletion logic will take care of NULL check and delete accordingly. This
is useful for cases where indirect sram flag could be manipulated later
after buffer allocation.

Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c