summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJonathan Marek <[email protected]>2019-12-15 18:56:47 -0500
committerJonathan Marek <[email protected]>2020-01-21 20:36:08 -0500
commit5f791df0d004291cf10fb54efa3b784a2dfd3ee2 (patch)
tree29208c1c4a9104615822bbfaef10c95a3cfa1d49 /src
parentc17176522338256d93696f04289c210f4635599b (diff)
turnip: fix array/matrix varyings
Signed-off-by: Jonathan Marek <[email protected]> Reviewed-by: Eric Anholt <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3109> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3109>
Diffstat (limited to 'src')
-rw-r--r--src/freedreno/vulkan/tu_shader.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/freedreno/vulkan/tu_shader.c b/src/freedreno/vulkan/tu_shader.c
index 13481b8d214..67374ac22cc 100644
--- a/src/freedreno/vulkan/tu_shader.c
+++ b/src/freedreno/vulkan/tu_shader.c
@@ -447,6 +447,8 @@ tu_shader_create(struct tu_device *dev,
/* ir3 doesn't support indirect input/output */
NIR_PASS_V(nir, nir_lower_indirect_derefs, nir_var_shader_in | nir_var_shader_out);
+ NIR_PASS_V(nir, nir_lower_io_arrays_to_elements_no_indirects, false);
+
nir_assign_io_var_locations(&nir->inputs, &nir->num_inputs, stage);
nir_assign_io_var_locations(&nir->outputs, &nir->num_outputs, stage);
@@ -470,8 +472,6 @@ tu_shader_create(struct tu_device *dev,
NIR_PASS_V(nir, ir3_nir_move_varying_inputs);
}
- NIR_PASS_V(nir, nir_lower_io_arrays_to_elements_no_indirects, false);
-
nir_shader_gather_info(nir, nir_shader_get_entrypoint(nir));
/* num_uniforms only used by ir3 for size of ubo 0 (push constants) */