zink: simplify redundant is_buffer check

it's in the params

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24775>
This commit is contained in:
Mike Blumenkrantz 2023-08-16 06:58:22 -04:00 committed by Marge Bot
parent 738eb0d78c
commit e02441b000

View file

@ -180,7 +180,7 @@ zink_batch_resource_usage_set(struct zink_batch *batch, struct zink_resource *re
if (acquire) if (acquire)
util_dynarray_append(&batch->state->acquires, VkSemaphore, acquire); util_dynarray_append(&batch->state->acquires, VkSemaphore, acquire);
} }
if (write && !res->obj->is_buffer) { if (write) {
if (!res->valid && res->fb_bind_count) if (!res->valid && res->fb_bind_count)
batch->state->ctx->rp_loadop_changed = true; batch->state->ctx->rp_loadop_changed = true;
res->valid = true; res->valid = true;