Skip to content

lima: actually wait for bo in lima_bo_wait

Erico Nunes requested to merge enunes/mesa:lima-wait-timeout into master

PIPE_TIMEOUT_INFINITE is unsigned and gets assigned to signed fields where it ends up as -1. When this reaches the kernel as a timeout it gets translated as no timeout, which cause the waiting functions to return immediately and not actually wait for a completion.

This seems to cause unstable results with lima where even piglit tests randomly fail. Fix this by using a real timeout. 500ms seems to be a generally long timeout and is also what is used by drivers in drm_sched, so it seems to be a reasonable start.

Merge request reports