zink: remove handling for resource flushing between compute/gfx batches
this is no longer a thing Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9786>
This commit is contained in:

committed by
Marge Bot

parent
9871c883cc
commit
6c35b4c771
@@ -845,9 +845,6 @@ zink_transfer_flush_region(struct pipe_context *pctx,
|
|||||||
if (trans->base.usage & PIPE_MAP_WRITE) {
|
if (trans->base.usage & PIPE_MAP_WRITE) {
|
||||||
if (trans->staging_res) {
|
if (trans->staging_res) {
|
||||||
struct zink_resource *staging_res = zink_resource(trans->staging_res);
|
struct zink_resource *staging_res = zink_resource(trans->staging_res);
|
||||||
if (zink_resource_has_usage(res, ZINK_RESOURCE_ACCESS_WRITE))
|
|
||||||
/* don't actually have to stall here, only ensure batch is submitted */
|
|
||||||
zink_flush_queue(ctx);
|
|
||||||
|
|
||||||
if (ptrans->resource->target == PIPE_BUFFER)
|
if (ptrans->resource->target == PIPE_BUFFER)
|
||||||
zink_copy_buffer(ctx, NULL, res, staging_res, box->x, box->x + trans->offset, box->width);
|
zink_copy_buffer(ctx, NULL, res, staging_res, box->x, box->x + trans->offset, box->width);
|
||||||
|
Reference in New Issue
Block a user