From 41c5f713432f303ca7b15d1ab6c9cd669a53df6e Mon Sep 17 00:00:00 2001 From: Rhys Perry Date: Thu, 30 May 2024 11:39:08 +0100 Subject: [PATCH] radv: lower sub-dword push constants MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Rhys Perry Reviewed-by: Marek Olšák Reviewed-by: Daniel Schürmann Part-of: --- src/amd/vulkan/radv_pipeline.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c index 15af598bd72..e77f501978e 100644 --- a/src/amd/vulkan/radv_pipeline.c +++ b/src/amd/vulkan/radv_pipeline.c @@ -439,9 +439,10 @@ radv_postprocess_nir(struct radv_device *device, const struct radv_graphics_stat } } - NIR_PASS(_, stage->nir, ac_nir_lower_subdword_loads, - (ac_nir_lower_subdword_options){.modes_1_comp = nir_var_mem_ubo, - .modes_N_comps = nir_var_mem_ubo | nir_var_mem_ssbo}); + NIR_PASS( + _, stage->nir, ac_nir_lower_subdword_loads, + (ac_nir_lower_subdword_options){.modes_1_comp = nir_var_mem_ubo | nir_var_mem_push_const, + .modes_N_comps = nir_var_mem_ubo | nir_var_mem_push_const | nir_var_mem_ssbo}); progress = false; NIR_PASS(progress, stage->nir, nir_vk_lower_ycbcr_tex, ycbcr_conversion_lookup, &stage->layout);