drm/amdgpu: cleanup instance limit on VCN4 v4
authorChristian König <christian.koenig@amd.com>
Thu, 21 Jul 2022 09:52:35 +0000 (11:52 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 20 Sep 2022 16:40:05 +0000 (12:40 -0400)
commitc05d789fed948ed6a45963ae0d5d79c67b87aebf
treec42dc548ee6a13ee49a801cf74e71b493b9c7729
parent16fb4dca95daa9d8e037201166a58de8284f4268
drm/amdgpu: cleanup instance limit on VCN4 v4

Similar to what we did for VCN3 use the job instead of the parser
entity. Cleanup the coding style quite a bit as well.

v2: merge improved application check into this patch
v3: finally fix the check
v4: limit to the correct engine

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