venus: double the abort timeout to allow long shader compiles

Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org>
Reviewed-by: Ryan Neph <ryanneph@google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17898>
This commit is contained in:
Yiwei Zhang 2022-08-04 20:31:36 +00:00
parent ecd5509969
commit f54aa49c14

View file

@ -19,7 +19,7 @@
#include "venus-protocol/vn_protocol_driver_info.h"
#include "vk_enum_to_str.h"
#define VN_RELAX_MIN_BASE_SLEEP_US (10)
#define VN_RELAX_MIN_BASE_SLEEP_US (20)
static const struct debug_control vn_debug_options[] = {
{ "init", VN_DEBUG_INIT },
@ -131,7 +131,7 @@ vn_relax(uint32_t *iter, const char *reason)
return;
}
/* warn occasionally if we have slept at least 0.32ms for 8192 times (plus
/* warn occasionally if we have slept at least 0.64ms for 8192 times (plus
* another 8191 shorter sleeps)
*/
if (unlikely(*iter % (1 << warn_order) == 0)) {