Module: Mesa Branch: main Commit: ecd75318e3950829e2079fe3099d899d9c38b04f URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ecd75318e3950829e2079fe3099d899d9c38b04f
Author: Mark Janes <mark.a.ja...@intel.com> Date: Tue Aug 25 15:29:20 2020 -0700 iris: Increase the size of upload buffers Smaller sizes may generate CPU overhead while saving negligible memory. Reviewed-by: Kenneth Graunke <kenn...@whitecape.org> Reviewed-by: Jordan Justen <jordan.l.jus...@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10759> --- src/gallium/drivers/iris/iris_context.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gallium/drivers/iris/iris_context.c b/src/gallium/drivers/iris/iris_context.c index e88170278b4..a26b59a3a49 100644 --- a/src/gallium/drivers/iris/iris_context.c +++ b/src/gallium/drivers/iris/iris_context.c @@ -315,14 +315,14 @@ iris_create_context(struct pipe_screen *pscreen, void *priv, unsigned flags) slab_create_child(&ice->transfer_pool_unsync, &screen->transfer_pool); ice->state.surface_uploader = - u_upload_create(ctx, 16384, PIPE_BIND_CUSTOM, PIPE_USAGE_IMMUTABLE, + u_upload_create(ctx, 64 * 1024, PIPE_BIND_CUSTOM, PIPE_USAGE_IMMUTABLE, IRIS_RESOURCE_FLAG_SURFACE_MEMZONE); ice->state.dynamic_uploader = - u_upload_create(ctx, 16384, PIPE_BIND_CUSTOM, PIPE_USAGE_IMMUTABLE, + u_upload_create(ctx, 64 * 1024, PIPE_BIND_CUSTOM, PIPE_USAGE_IMMUTABLE, IRIS_RESOURCE_FLAG_DYNAMIC_MEMZONE); ice->query_buffer_uploader = - u_upload_create(ctx, 4096, PIPE_BIND_CUSTOM, PIPE_USAGE_STAGING, + u_upload_create(ctx, 16 * 1024, PIPE_BIND_CUSTOM, PIPE_USAGE_STAGING, 0); genX_call(devinfo, init_state, ice); _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-commit