From 4f96651f1e46ccc673c75534a7f7b17e3b18e6d7 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Fri, 18 Nov 2022 23:18:14 -0500 Subject: [PATCH] asahi: Use correct tib settings for USC Signed-off-by: Alyssa Rosenzweig Part-of: --- src/gallium/drivers/asahi/agx_state.c | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/src/gallium/drivers/asahi/agx_state.c b/src/gallium/drivers/asahi/agx_state.c index 445a5af..ab152f9 100644 --- a/src/gallium/drivers/asahi/agx_state.c +++ b/src/gallium/drivers/asahi/agx_state.c @@ -1381,17 +1381,10 @@ agx_build_pipeline(struct agx_batch *batch, struct agx_compiled_shader *cs, enum agx_push_location(batch, cs->info.push[i], stage)); } - agx_usc_pack(&b, SHARED, cfg) { - if (stage == PIPE_SHADER_FRAGMENT) { - cfg.uses_shared_memory = true; - cfg.layout = AGX_SHARED_LAYOUT_32X32; - cfg.sample_stride_in_8_bytes = 1; - cfg.bytes_per_threadgroup = 8 * 32 * 32; - cfg.sample_count = 1; - } else { - cfg.layout = AGX_SHARED_LAYOUT_VERTEX_COMPUTE; - } - } + if (stage == PIPE_SHADER_FRAGMENT) + agx_usc_tilebuffer(&b, &batch->tilebuffer_layout); + else + agx_usc_shared_none(&b); agx_usc_pack(&b, SHADER, cfg) { cfg.loads_varyings = (stage == PIPE_SHADER_FRAGMENT); -- 2.7.4