0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-06-04 21:41:18 +00:00
Files
termux-packages/packages/mesa/0014-replace-turnip-wait_timestamp_safe-assert.patch
Robert Kirkman f33dd2f984 fix(main/mesa-vulkan-icd-freedreno): replace wait_timestamp_safe() assertion failure with a warning
This works around the crash:

```
../src/freedreno/vulkan/tu_knl_kgsl.cc:572:
VkResult wait_timestamp_safe(int, unsigned int, unsigned int, uint64_t):
Assertion errno == ETIMEDOUT' failed.
```

that happens to some users in some situations, which can allow the program to proceed and print a message showing the contents of `errno` instead.
2025-05-30 13:41:21 -05:00

20 lines
790 B
Diff

works around this crash frequently happening in some situations,
../src/freedreno/vulkan/tu_knl_kgsl.cc:572:
VkResult wait_timestamp_safe(int, unsigned int, unsigned int, uint64_t):
Assertion errno == ETIMEDOUT' failed.
by allowing the program to proceed and printing a warning instead, which can sometimes work
and preserve the GPU connection.
--- a/src/freedreno/vulkan/tu_knl_kgsl.cc
+++ b/src/freedreno/vulkan/tu_knl_kgsl.cc
@@ -579,7 +579,8 @@ wait_timestamp_safe(int fd,
wait.timeout = timeout_ms;
} else if (ret == -1) {
- assert(errno == ETIMEDOUT);
+ mesa_logw("tu_knl_kgsl.cc wait_timestamp_safe() errno: %s\n", strerror(errno));
+ //assert(errno == ETIMEDOUT);
return VK_TIMEOUT;
} else {
return VK_SUCCESS;