zink: simplify dumb update flagging in set_shader_images

cc: mesa-stable

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16508>
This commit is contained in:
Mike Blumenkrantz 2022-05-13 11:23:10 -04:00 committed by Marge Bot
parent 22954b4860
commit a3dff53487

View file

@ -1493,7 +1493,7 @@ zink_set_shader_images(struct pipe_context *pctx,
update = true;
update_descriptor_state_image(ctx, p_stage, start_slot + i, res);
} else if (image_view->base.resource) {
update |= !!image_view->base.resource;
update = true;
unbind_shader_image(ctx, p_stage, start_slot + i);
update_descriptor_state_image(ctx, p_stage, start_slot + i, NULL);