X-Git-Url: https://git.libre-soc.org/?p=mesa.git;a=blobdiff_plain;f=src%2Fgallium%2Fdrivers%2Fpanfrost%2Fpan_context.c;h=3002e551f6b83c2e34bed01be3544c489c2c10db;hp=55f4ea667a11873cfdf6aa06aaf908c11e24013c;hb=8c14482cdf134a9dcae6807671106bbc54e5aadb;hpb=da677a438f2a9e6c2412e9962b53068716001d9e diff --git a/src/gallium/drivers/panfrost/pan_context.c b/src/gallium/drivers/panfrost/pan_context.c index 55f4ea667a1..3002e551f6b 100644 --- a/src/gallium/drivers/panfrost/pan_context.c +++ b/src/gallium/drivers/panfrost/pan_context.c @@ -1159,6 +1159,7 @@ panfrost_destroy(struct pipe_context *pipe) util_unreference_framebuffer_state(&panfrost->pipe_framebuffer); u_upload_destroy(pipe->stream_uploader); + u_upload_destroy(panfrost->state_uploader); ralloc_free(pipe); } @@ -1427,7 +1428,9 @@ panfrost_create_context(struct pipe_screen *screen, void *priv, unsigned flags) gallium->stream_uploader = u_upload_create_default(gallium); gallium->const_uploader = gallium->stream_uploader; - assert(gallium->stream_uploader); + + ctx->state_uploader = u_upload_create(gallium, 4096, + PIPE_BIND_CONSTANT_BUFFER, PIPE_USAGE_DYNAMIC, 0); /* All of our GPUs support ES mode. Midgard supports additionally * QUADS/QUAD_STRIPS/POLYGON. Bifrost supports just QUADS. */