Mesa (main): zink: use new tc util for setting bytes_mapped_limit

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Jul 20 14:06:53 UTC 2021


Module: Mesa
Branch: main
Commit: c3914bb2e891faa0409638c6f5f6a5b8a80176ae
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c3914bb2e891faa0409638c6f5f6a5b8a80176ae

Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date:   Wed Jul 14 13:44:39 2021 -0400

zink: use new tc util for setting bytes_mapped_limit

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

---

 src/gallium/drivers/zink/zink_context.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/zink/zink_context.c b/src/gallium/drivers/zink/zink_context.c
index d92ddbe0542..e4599292dc2 100644
--- a/src/gallium/drivers/zink/zink_context.c
+++ b/src/gallium/drivers/zink/zink_context.c
@@ -3576,7 +3576,7 @@ zink_context_create(struct pipe_screen *pscreen, void *priv, unsigned flags)
                                                      zink_context_is_resource_busy, true, &ctx->tc);
 
    if (tc && (struct zink_context*)tc != ctx) {
-      tc->bytes_mapped_limit = screen->total_mem / 4;
+      threaded_context_init_bytes_mapped_limit(tc, 4);
       ctx->base.set_context_param = zink_set_context_param;
    }
 



More information about the mesa-commit mailing list