diff options
author | Kristian Høgsberg <krh@bitplanet.net> | 2015-03-02 16:19:52 -0800 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2015-03-04 09:55:31 -0800 |
commit | 10c82c6c5fc415d323a5e9c6acdc6a4c85d6b712 (patch) | |
tree | abffb4c8bf00bae638cb8ab53644bf361307066e /bin/perf-annotate-jit | |
parent | 65c8965d033cf9ade5e6f3c88bda6d247d46af9d (diff) | |
download | external_mesa3d-10c82c6c5fc415d323a5e9c6acdc6a4c85d6b712.zip external_mesa3d-10c82c6c5fc415d323a5e9c6acdc6a4c85d6b712.tar.gz external_mesa3d-10c82c6c5fc415d323a5e9c6acdc6a4c85d6b712.tar.bz2 |
i965: Fix uint64_t overflow in intel_client_wait_sync()
DRM_IOCTL_I915_GEM_WAIT takes an int64_t for the timeout value but
GL_ARB_sync takes an uint64_t. Further, the ioctl used to wait
indefinitely when passed a negative timeout, but it's been broken and
now returns immediately in that case. Thus, if an application passes
UINT64_MAX to wait forever, we overflow to -1LL and return immediately.
Work around this mess by clamping the wait timeout to INT64_MAX.
Signed-off-by: Kristian Høgsberg <krh@bitplanet.net>
Reviewed-by: Chad Versace <chad.versace@intel.com>
Diffstat (limited to 'bin/perf-annotate-jit')
0 files changed, 0 insertions, 0 deletions