• Erico Nunes's avatar
    lima: actually wait for bo in lima_bo_wait · 7a51abab
    Erico Nunes authored
    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.
    Handle this by setting the signed max value in case of infinite timeout.
    Signed-off-by: Erico Nunes's avatarErico Nunes <nunes.erico@gmail.com>
    Reviewed-by: Qiang Yu's avatarQiang Yu <yuq825@gmail.com>