drm/amdgpu: don't require a job for cond_exec and shadow
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 16 Mar 2023 15:33:43 +0000 (11:33 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 24 Apr 2023 22:16:27 +0000 (18:16 -0400)
commit38be7796f310cd2bc84dcc40c4fd1964df39a5b0
tree4f24e898ab247aac4c2458382fcd553bd9437780
parent46c1282e5a31c33a6973affbcc765eac1f3f5d1c
drm/amdgpu: don't require a job for cond_exec and shadow

We need to reset the shadow state every time we submit an
IB and there needs to be a COND_EXEC packet after the
SET_Q_PREEMPTION_MODE packet for it to work properly, so
we should emit both of these packets regardless of whether
there is a job present or not.

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