Mesa (master): gallium/util: don't call close() on Windows in u_tests.c
Brian Paul
brianp at kemper.freedesktop.org
Mon Oct 23 21:13:24 UTC 2017
Module: Mesa
Branch: master
Commit: 069211f205e0f62b3cdae94608b63b253f37799e
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=069211f205e0f62b3cdae94608b63b253f37799e
Author: Brian Paul <brianp at vmware.com>
Date: Tue Oct 17 13:59:28 2017 -0600
gallium/util: don't call close() on Windows in u_tests.c
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
---
src/gallium/auxiliary/util/u_tests.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/gallium/auxiliary/util/u_tests.c b/src/gallium/auxiliary/util/u_tests.c
index 3cc79afcff..2548b464b3 100644
--- a/src/gallium/auxiliary/util/u_tests.c
+++ b/src/gallium/auxiliary/util/u_tests.c
@@ -567,6 +567,7 @@ test_sync_file_fences(struct pipe_context *ctx)
pass = pass && screen->fence_finish(screen, NULL, final_fence, 0);
/* Cleanup. */
+#ifndef PIPE_OS_WINDOWS
if (buf_fd >= 0)
close(buf_fd);
if (tex_fd >= 0)
@@ -575,6 +576,7 @@ test_sync_file_fences(struct pipe_context *ctx)
close(merged_fd);
if (final_fd >= 0)
close(final_fd);
+#endif
screen->fence_reference(screen, &buf_fence, NULL);
screen->fence_reference(screen, &tex_fence, NULL);
More information about the mesa-commit
mailing list