diff options
author | Christian Gmeiner <christian.gmeiner@gmail.com> | 2019-07-31 20:10:14 +0200 |
---|---|---|
committer | Marge Bot <eric+marge@anholt.net> | 2020-04-05 18:01:43 +0000 |
commit | 238190403068edf4c6a9b761095193a88bea841d (patch) | |
tree | 806b3ae4489902c8d1e173e2dc9472489425a64d /src/gallium/drivers/etnaviv/etnaviv_context.c | |
parent | f2c4892512732bbf08951a188e4a5774951d6f86 (diff) |
etnaviv: explicitly call resource_written(..)
We might end in cases where etna_acc_get_query_result(..) gets called
within one draw call (aka before flushing). At this point the status
of the resource was not set but gets used in etna_acc_get_query_result(..)
to handle different wait cases. Fix this issue by calling resource_written(..)
explicitly.
Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/1530>
Diffstat (limited to 'src/gallium/drivers/etnaviv/etnaviv_context.c')
-rw-r--r-- | src/gallium/drivers/etnaviv/etnaviv_context.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/gallium/drivers/etnaviv/etnaviv_context.c b/src/gallium/drivers/etnaviv/etnaviv_context.c index e91e6f11a3b..9f9c539a413 100644 --- a/src/gallium/drivers/etnaviv/etnaviv_context.c +++ b/src/gallium/drivers/etnaviv/etnaviv_context.c @@ -347,9 +347,6 @@ etna_draw_vbo(struct pipe_context *pctx, const struct pipe_draw_info *info) } } - list_for_each_entry(struct etna_acc_query, aq, &ctx->active_acc_queries, node) - resource_written(ctx, aq->prsc); - ctx->stats.prims_emitted += u_reduced_prims_for_vertices(info->mode, info->count); ctx->stats.draw_calls++; |