zink: const-ify a surface param

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21292>
This commit is contained in:
Mike Blumenkrantz 2023-02-13 14:55:31 -05:00 committed by Marge Bot
parent d05b7ef641
commit 44ce7ee6c1

View file

@ -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;