From 44ce7ee6c1ba478b3ce10058c9c165ff2405b23f Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Mon, 13 Feb 2023 14:55:31 -0500 Subject: [PATCH] zink: const-ify a surface param Part-of: --- src/gallium/drivers/zink/zink_surface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/zink/zink_surface.c b/src/gallium/drivers/zink/zink_surface.c index fbc86383502..6b8fd3530bc 100644 --- a/src/gallium/drivers/zink/zink_surface.c +++ b/src/gallium/drivers/zink/zink_surface.c @@ -253,7 +253,7 @@ zink_get_surface(struct zink_context *ctx, /* wrap a surface for use as a framebuffer attachment */ static struct pipe_surface * -wrap_surface(struct pipe_context *pctx, struct pipe_surface *psurf) +wrap_surface(struct pipe_context *pctx, const struct pipe_surface *psurf) { struct zink_ctx_surface *csurf = CALLOC_STRUCT(zink_ctx_surface); csurf->base = *psurf;