mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 06:58:05 +02:00
zink: remove redundant conditional in set_sampler_views
it's redundant, but it checks a different flag so it consumes cycles Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23514>
This commit is contained in:
parent
26f456203c
commit
5511a08a1c
1 changed files with 1 additions and 1 deletions
|
|
@ -2034,7 +2034,7 @@ zink_set_sampler_views(struct pipe_context *pctx,
|
|||
zink_batch_resource_usage_set(&ctx->batch, res, false, true);
|
||||
if (!ctx->unordered_blitting)
|
||||
res->obj->unordered_read = false;
|
||||
} else if (!res->obj->is_buffer) {
|
||||
} else {
|
||||
if (!res->obj->dt && res->base.b.format != b->image_view->base.format)
|
||||
/* mutable not set by default */
|
||||
zink_resource_object_init_mutable(ctx, res);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue