Mesa (staging/21.3): zink: don't update lazy descriptor states in hybrid mode
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Oct 21 22:06:02 UTC 2021
Module: Mesa
Branch: staging/21.3
Commit: 3c162ae69e25be53c6a4d85923d62617f811eef0
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=3c162ae69e25be53c6a4d85923d62617f811eef0
Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date: Wed Oct 13 09:16:35 2021 -0400
zink: don't update lazy descriptor states in hybrid mode
I'm not 100% sure how, but this breaks tomb raider
Reviewed-by: Dave Airlie <airlied at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13429>
---
src/gallium/drivers/zink/zink_descriptors_lazy.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/gallium/drivers/zink/zink_descriptors_lazy.c b/src/gallium/drivers/zink/zink_descriptors_lazy.c
index ad922dc1cd7..b4b5988cd5f 100644
--- a/src/gallium/drivers/zink/zink_descriptors_lazy.c
+++ b/src/gallium/drivers/zink/zink_descriptors_lazy.c
@@ -536,9 +536,6 @@ zink_descriptors_update_lazy_masked(struct zink_context *ctx, bool is_compute, u
dd_lazy(ctx)->push_state_changed[is_compute] = false;
}
}
- bdd->pg[is_compute] = pg;
- ctx->dd->pg[is_compute] = pg;
- bdd->compat_id[is_compute] = pg->compat_id;
}
void
@@ -581,6 +578,9 @@ zink_descriptors_update_lazy(struct zink_context *ctx, bool is_compute)
0, NULL);
ctx->dd->bindless_bound = true;
}
+ bdd->pg[is_compute] = pg;
+ ctx->dd->pg[is_compute] = pg;
+ bdd->compat_id[is_compute] = pg->compat_id;
}
void
More information about the mesa-commit
mailing list