Mesa (main): zink: replace other pipe_buffer_write usage with pipe_buffer_write_nooverlap
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Sun Jan 30 19:29:02 UTC 2022
Module: Mesa
Branch: main
Commit: c9a091949967dc0c81b70992a8ba1db238aa2acd
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c9a091949967dc0c81b70992a8ba1db238aa2acd
Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date: Wed Jan 26 14:58:19 2022 -0500
zink: replace other pipe_buffer_write usage with pipe_buffer_write_nooverlap
this is just to be consistent and avoid any pipe_buffer_write() usage
so that grep won't find it
Reviewed-by: Dave Airlie <airlied at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14745>
---
src/gallium/drivers/zink/zink_context.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/gallium/drivers/zink/zink_context.c b/src/gallium/drivers/zink/zink_context.c
index b4b9a85204a..fbc019aad84 100644
--- a/src/gallium/drivers/zink/zink_context.c
+++ b/src/gallium/drivers/zink/zink_context.c
@@ -4211,8 +4211,8 @@ zink_context_create(struct pipe_screen *pscreen, void *priv, unsigned flags)
if (!ctx->batch.state)
goto fail;
- pipe_buffer_write(&ctx->base, ctx->dummy_vertex_buffer, 0, sizeof(data), data);
- pipe_buffer_write(&ctx->base, ctx->dummy_xfb_buffer, 0, sizeof(data), data);
+ pipe_buffer_write_nooverlap(&ctx->base, ctx->dummy_vertex_buffer, 0, sizeof(data), data);
+ pipe_buffer_write_nooverlap(&ctx->base, ctx->dummy_xfb_buffer, 0, sizeof(data), data);
for (unsigned i = 0; i < PIPE_SHADER_TYPES; i++) {
/* need to update these based on screen config for null descriptors */
More information about the mesa-commit
mailing list