mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-22 22:50:32 +01:00
radeonsi/vpe: remove wait source surface fence and while loop
Kernel will handle source waiting, so remove the user mode waiting. Signed-off-by: Peyton Lee <peytolee@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26841>
This commit is contained in:
parent
2d3273e388
commit
7bea7ced40
1 changed files with 3 additions and 8 deletions
|
|
@ -896,13 +896,6 @@ si_vpe_processor_process_frame(struct pipe_video_codec *codec,
|
|||
goto fail;
|
||||
}
|
||||
|
||||
/* Wait Source Surface fence */
|
||||
if (process_properties->src_surface_fence) {
|
||||
struct pipe_fence_handle *input_fence = (struct pipe_fence_handle *)process_properties->src_surface_fence;
|
||||
while (!vpeproc->ws->fence_wait(vpeproc->ws, input_fence, VPE_FENCE_TIMEOUT_NS))
|
||||
SIVPE_INFO(vpeproc->log_level, "Wait source surface fence fail\n");
|
||||
}
|
||||
|
||||
/* Have to tell Command Submission context the command length wrote by libvpe */
|
||||
vpeproc->cs.current.cdw += (vpeproc->vpe_build_bufs->cmd_buf.size / 4);
|
||||
|
||||
|
|
@ -963,8 +956,10 @@ static int si_vpe_processor_get_processor_fence(struct pipe_video_codec *codec,
|
|||
assert(codec);
|
||||
|
||||
SIVPE_INFO(vpeproc->log_level, "Wait processor fence\n");
|
||||
while (!vpeproc->ws->fence_wait(vpeproc->ws, fence, timeout))
|
||||
if (!vpeproc->ws->fence_wait(vpeproc->ws, fence, timeout)) {
|
||||
SIVPE_DBG(vpeproc->log_level, "Wait processor fence fail\n");
|
||||
return 0;
|
||||
}
|
||||
SIVPE_INFO(vpeproc->log_level, "Wait processor fence success\n");
|
||||
return 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue