29 lines
1.0 KiB
Diff
29 lines
1.0 KiB
Diff
From f738d23f819c20855bab42c76ae22d9cef3a8611 Mon Sep 17 00:00:00 2001
|
|
From: Imagination Technologies <powervr@imgtec.com>
|
|
Date: Mon, 13 Feb 2023 14:52:57 -0500
|
|
Subject: [PATCH 151/168] 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>
|
|
---
|
|
src/gallium/drivers/zink/zink_context.c | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/src/gallium/drivers/zink/zink_context.c b/src/gallium/drivers/zink/zink_context.c
|
|
index ff977d9e141..394b15d7158 100644
|
|
--- a/src/gallium/drivers/zink/zink_context.c
|
|
+++ b/src/gallium/drivers/zink/zink_context.c
|
|
@@ -4563,7 +4563,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++) {
|
|
--
|
|
2.17.1
|
|
|