zink: only try for a fb rebind if fb binds exist in rebind_image()

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21292>
This commit is contained in:
Mike Blumenkrantz
2023-02-13 14:52:57 -05:00
committed by Marge Bot
parent f11e9e3aa1
commit f770263ab6
+2 -1
View File
@@ -4742,7 +4742,8 @@ zink_resource_commit(struct pipe_context *pctx, struct pipe_resource *pres, unsi
static void
rebind_image(struct zink_context *ctx, struct zink_resource *res)
{
zink_rebind_framebuffer(ctx, res);
if (res->fb_binds)
zink_rebind_framebuffer(ctx, res);
if (!zink_resource_has_binds(res))
return;
for (unsigned i = 0; i < MESA_SHADER_STAGES; i++) {