zink: simplify dumb update flagging in set_shader_images
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Fri, 13 May 2022 15:23:10 +0000 (11:23 -0400)
committerMarge Bot <emma+marge@anholt.net>
Sun, 15 May 2022 19:46:23 +0000 (19:46 +0000)
cc: mesa-stable

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16508>

src/gallium/drivers/zink/zink_context.c

index 17194dd..a403efa 100644 (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);