From 90c005dd90c30c1d9b160ab3465e642dd40c6eb9 Mon Sep 17 00:00:00 2001 From: Mary Guillemard Date: Sat, 4 Oct 2025 12:34:02 +0200 Subject: [PATCH] nvk: Do not use SET_L1_CONFIGURATION on 3D state init There is no reasons to cut 48KiB of memory out of L1 cache on gfx considering that we do not have shared memory and that local memory does not need to be directly addressable. This is not set by NVIDIA proprietary driver and the golden ctx setup keep it uninitialized. Unsure if that will change anything in term of performance but it might reduce L1 cache usage on 3D. Signed-off-by: Mary Guillemard Reviewed-by: Mel Henning Tested-by: Thomas H.P. Andersen Part-of: --- src/nouveau/vulkan/nvk_cmd_draw.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/nouveau/vulkan/nvk_cmd_draw.c b/src/nouveau/vulkan/nvk_cmd_draw.c index 0f12ef9f782..331cb61d3ae 100644 --- a/src/nouveau/vulkan/nvk_cmd_draw.c +++ b/src/nouveau/vulkan/nvk_cmd_draw.c @@ -293,9 +293,6 @@ nvk_push_draw_state_init(struct nvk_queue *queue, struct nv_push *p) P_IMMD(p, NV9097, SET_ZCULL_STATS, ENABLE_TRUE); - P_IMMD(p, NV9097, SET_L1_CONFIGURATION, - DIRECTLY_ADDRESSABLE_MEMORY_SIZE_48KB); - P_IMMD(p, NV9097, SET_REDUCE_COLOR_THRESHOLDS_ENABLE, V_FALSE); P_IMMD(p, NV9097, SET_REDUCE_COLOR_THRESHOLDS_UNORM8, { .all_covered_all_hit_once = 0xff,