Mesa (main): freedrneo/a6xx: Reduce the size of the long-lived texture stateobj.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Jul 13 22:29:46 UTC 2021


Module: Mesa
Branch: main
Commit: 599443febc4803aa7fe4464cd6c6642f22406462
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=599443febc4803aa7fe4464cd6c6642f22406462

Author: Emma Anholt <emma at anholt.net>
Date:   Fri Jul  2 15:21:56 2021 -0700

freedrneo/a6xx: Reduce the size of the long-lived texture stateobj.

It's just a few commands to upload the sampler/texconst data.  Improves
the efficiency of suballocation.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11697>

---

 src/gallium/drivers/freedreno/a6xx/fd6_texture.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/freedreno/a6xx/fd6_texture.c b/src/gallium/drivers/freedreno/a6xx/fd6_texture.c
index e82b8d1bac5..f1e89b9aa52 100644
--- a/src/gallium/drivers/freedreno/a6xx/fd6_texture.c
+++ b/src/gallium/drivers/freedreno/a6xx/fd6_texture.c
@@ -437,7 +437,7 @@ fd6_texture_state(struct fd_context *ctx, enum pipe_shader_type type,
    /* NOTE: one ref for tex_cache, and second ref for returned state: */
    pipe_reference_init(&state->reference, 2);
    state->key = key;
-   state->stateobj = fd_ringbuffer_new_object(ctx->pipe, 0x1000);
+   state->stateobj = fd_ringbuffer_new_object(ctx->pipe, 32 * 4);
    state->needs_border = needs_border;
 
    fd6_emit_textures(ctx, state->stateobj, type, tex, key.bcolor_offset, NULL);



More information about the mesa-commit mailing list