summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNicolai Hähnle <nicolai.haehnle@amd.com>2017-11-09 14:34:20 +0100
committerNicolai Hähnle <nicolai.haehnle@amd.com>2018-03-14 09:04:01 +0100
commit1a13c2a842223d7f452219790169abb0df42c7ca (patch)
treed5031a443af91583d571ef98d77d3bf80d5d02e2 /src
parent25a966a23d397cdfd853bc3ee54a11cf3bd3f84d (diff)
st/mesa: use asynchronous flushes for glFlush
Having the gallium driver thread flush in the background should be sufficient for glFlush semantics. Various end-of-frame flushes (from st_context_flush and st/dri) still use a synchronous flush. We should eventually be able to transition those to asynchronous flushes as well by passing fences explicitly via the X protocol.
Diffstat (limited to 'src')
-rw-r--r--src/mesa/state_tracker/st_cb_flush.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_cb_flush.c b/src/mesa/state_tracker/st_cb_flush.c
index 14bfd5a468..5f4e2ac3cc 100644
--- a/src/mesa/state_tracker/st_cb_flush.c
+++ b/src/mesa/state_tracker/st_cb_flush.c
@@ -88,7 +88,7 @@ static void st_glFlush(struct gl_context *ctx)
* synchronization issues. Calling finish() here will just hide
* problems that need to be fixed elsewhere.
*/
- st_flush(st, NULL, 0);
+ st_flush(st, NULL, PIPE_FLUSH_ASYNC);
st_manager_flush_frontbuffer(st);
}