Mesa (master): mesa: increase MaxServerWaitTimeout

Nicolai Hähnle nh at kemper.freedesktop.org
Thu Nov 9 13:22:37 UTC 2017


Module: Mesa
Branch: master
Commit: 46444613cfc46e71f3b875b9a202e0f60ba79cfd
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=46444613cfc46e71f3b875b9a202e0f60ba79cfd

Author: Nicolai Hähnle <nicolai.haehnle at amd.com>
Date:   Sun Oct 22 17:39:03 2017 +0200

mesa: increase MaxServerWaitTimeout

The current value was introduced in commit a27180d0d8666, which claims
that it represents ~1.11 years. However, it is interpreted in nanoseconds,
so it actually only represents ~9.8 hours. That seems a bit short.

Use the largest value consistent with both int32 and int64. It
corresponds to ~292 years in nanoseconds.

Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Marek Olšák <marek.olsak at amd.com>

---

 src/mesa/main/context.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
index 6d24b93c19..61099eb39f 100644
--- a/src/mesa/main/context.c
+++ b/src/mesa/main/context.c
@@ -654,7 +654,7 @@ _mesa_init_constants(struct gl_constants *consts, gl_api api)
    consts->UniformBooleanTrue = FLOAT_AS_UNION(1.0f).u;
 
    /* GL_ARB_sync */
-   consts->MaxServerWaitTimeout = 0x1fff7fffffffULL;
+   consts->MaxServerWaitTimeout = 0x7fffffff7fffffffULL;
 
    /* GL_EXT_provoking_vertex */
    consts->QuadsFollowProvokingVertexConvention = GL_TRUE;




More information about the mesa-commit mailing list