From 885437d1a6cebf30ec2af1e7c554f75ad8621739 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Tue, 3 May 2022 13:08:29 -0500 Subject: [PATCH] panvk: Call nir_lower_io_arrays_to_elements_no_indirects Reviewed-by: Alyssa Rosenzweig Part-of: --- src/panfrost/vulkan/panvk_vX_shader.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/panfrost/vulkan/panvk_vX_shader.c b/src/panfrost/vulkan/panvk_vX_shader.c index 7b3c40b..45306d5 100644 --- a/src/panfrost/vulkan/panvk_vX_shader.c +++ b/src/panfrost/vulkan/panvk_vX_shader.c @@ -586,8 +586,11 @@ panvk_per_arch(shader_create)(struct panvk_device *dev, NIR_PASS_V(nir, nir_opt_combine_stores, nir_var_all); NIR_PASS_V(nir, nir_opt_trivial_continues); - if (stage == MESA_SHADER_FRAGMENT) + if (stage == MESA_SHADER_FRAGMENT) { + /* This is required for nir_lower_blend */ + NIR_PASS_V(nir, nir_lower_io_arrays_to_elements_no_indirects, true); panvk_lower_blend(pdev, nir, &inputs, blend_state, static_blend_constants); + } NIR_PASS_V(nir, nir_lower_uniforms_to_ubo, true, false); NIR_PASS_V(nir, nir_lower_explicit_io, -- 2.7.4