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 <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13849>
This commit is contained in:
parent
1eb2f0d41e
commit
5f140a723d
|
@ -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++) {
|
||||
|
|
Loading…
Reference in New Issue