From f70d0425c86e425921fb31ecf5bd6c775908a35e Mon Sep 17 00:00:00 2001 From: Faith Ekstrand Date: Wed, 28 May 2025 11:23:21 -0400 Subject: [PATCH] nvk: Stop doubling root descriptors Reviewed-by: Lorenzo Rossi Acked-by: Karol Herbst Reviewed-by: Mel Henning Part-of: --- src/nouveau/vulkan/nvk_shader.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/nouveau/vulkan/nvk_shader.c b/src/nouveau/vulkan/nvk_shader.c index cffb4d1fa2e..6250dcfefb7 100644 --- a/src/nouveau/vulkan/nvk_shader.c +++ b/src/nouveau/vulkan/nvk_shader.c @@ -403,15 +403,10 @@ nvk_lower_nir(struct nvk_device *dev, nir_shader *nir, /* Large constant support assumes cbufs */ NIR_PASS(_, nir, nir_opt_large_constants, NULL, 32); } else { - /* Codegen sometimes puts stuff in cbuf 1 and adds 1 to our cbuf indices - * so we can't really rely on it for lowering to cbufs and instead place - * the root descriptors in both cbuf 0 and cbuf 1. - */ *cbuf_map_out = (struct nvk_cbuf_map) { - .cbuf_count = 2, + .cbuf_count = 1, .cbufs = { { .type = NVK_CBUF_TYPE_ROOT_DESC }, - { .type = NVK_CBUF_TYPE_ROOT_DESC }, } }; }