From 5f140a723deaf4c85647dbb1688a67c9296aa9a7 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Wed, 17 Nov 2021 16:46:49 -0500 Subject: [PATCH] zink: use IMMUTABLE for dummy xfb buffer this is never getting read back or anything so don't waste BAR allocation Reviewed-by: Dave Airlie Part-of: --- 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 defca8d..29c56dc 100644 --- a/src/gallium/drivers/zink/zink_context.c +++ b/src/gallium/drivers/zink/zink_context.c @@ -4182,7 +4182,7 @@ zink_context_create(struct pipe_screen *pscreen, void *priv, unsigned flags) if (!ctx->dummy_vertex_buffer) goto fail; ctx->dummy_xfb_buffer = pipe_buffer_create(&screen->base, - PIPE_BIND_STREAM_OUTPUT, PIPE_USAGE_DEFAULT, sizeof(data)); + PIPE_BIND_STREAM_OUTPUT, PIPE_USAGE_IMMUTABLE, sizeof(data)); if (!ctx->dummy_xfb_buffer) goto fail; for (unsigned i = 0; i < ARRAY_SIZE(ctx->dummy_surface); i++) { -- 2.7.4