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>
(cherry picked from commit a3dff53487)
This commit is contained in:
Mike Blumenkrantz 2022-05-13 11:23:10 -04:00 committed by Dylan Baker
parent 78feb8286f
commit 308af4a479
2 changed files with 2 additions and 2 deletions

View file

@ -562,7 +562,7 @@
"description": "zink: simplify dumb update flagging in set_shader_images",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null
},

View file

@ -1500,7 +1500,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);