[Mesa-dev] [PATCH] gallium/u_threaded: fix end_query regression

Nicolai Hähnle nhaehnle at gmail.com
Fri Nov 10 09:01:26 UTC 2017


From: Nicolai Hähnle <nicolai.haehnle at amd.com>

Ouch...

Fixes: 244536d3d6b4 ("gallium/u_threaded: avoid syncs for get_query_result")
---
 src/gallium/auxiliary/util/u_threaded_context.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/gallium/auxiliary/util/u_threaded_context.c b/src/gallium/auxiliary/util/u_threaded_context.c
index 341d70a48fc..cf829d3d9fb 100644
--- a/src/gallium/auxiliary/util/u_threaded_context.c
+++ b/src/gallium/auxiliary/util/u_threaded_context.c
@@ -388,22 +388,20 @@ tc_call_end_query(struct pipe_context *pipe, union tc_payload *payload)
 }
 
 static bool
 tc_end_query(struct pipe_context *_pipe, struct pipe_query *query)
 {
    struct threaded_context *tc = threaded_context(_pipe);
    struct threaded_query *tq = threaded_query(query);
    struct tc_end_query_payload *payload =
       tc_add_struct_typed_call(tc, TC_CALL_end_query, tc_end_query_payload);
 
-   tc_add_small_call(tc, TC_CALL_end_query);
-
    payload->tc = tc;
    payload->query = query;
 
    tq->flushed = false;
 
    return true; /* we don't care about the return value for this call */
 }
 
 static boolean
 tc_get_query_result(struct pipe_context *_pipe,
-- 
2.11.0



More information about the mesa-dev mailing list