mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
Revert "zink: call tc_driver_internal_flush_notify() on flush"
This reverts commit 4d62fca087.
this is broken beyond space and time but only reveals its true nature
when used outside of a unit test
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11080>
This commit is contained in:
parent
6dd02a5139
commit
9ff54d408b
2 changed files with 1 additions and 4 deletions
|
|
@ -486,8 +486,6 @@ zink_end_batch(struct zink_context *ctx, struct zink_batch *batch)
|
|||
if (!ctx->queries_disabled)
|
||||
zink_suspend_queries(ctx, batch);
|
||||
|
||||
tc_driver_internal_flush_notify(ctx->tc);
|
||||
|
||||
if (vkEndCommandBuffer(batch->state->cmdbuf) != VK_SUCCESS) {
|
||||
debug_printf("vkEndCommandBuffer failed\n");
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -2287,7 +2287,6 @@ zink_flush(struct pipe_context *pctx,
|
|||
check_device_lost(ctx);
|
||||
}
|
||||
}
|
||||
tc_driver_internal_flush_notify(ctx->tc);
|
||||
} else {
|
||||
fence = &batch->state->fence;
|
||||
if (deferred && !(flags & PIPE_FLUSH_FENCE_FD) && pfence)
|
||||
|
|
@ -3352,7 +3351,7 @@ zink_context_create(struct pipe_screen *pscreen, void *priv, unsigned flags)
|
|||
struct threaded_context *tc = (struct threaded_context*)threaded_context_create(&ctx->base, &screen->transfer_pool,
|
||||
zink_context_replace_buffer_storage,
|
||||
zink_create_tc_fence_for_tc,
|
||||
zink_context_is_resource_busy, true, &ctx->tc);
|
||||
zink_context_is_resource_busy, false, &ctx->tc);
|
||||
|
||||
if (tc && (struct zink_context*)tc != ctx) {
|
||||
tc->bytes_mapped_limit = screen->total_mem / 4;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue