mesa/src/amd/vulkan/nir
Timur Kristóf 8b263555ee radv: Lower array derefs of vectors outside of shader linking.
This fixes depth-only rendering with mesh shaders,
as well as array derefs in unlinked shaders in general.

Lowering array derefs of vectors is necessary for correctness.
Without this, nir_lower_io will incorrectly add the array index
to the IO intrinsic base instead of to the component offset.

This was previously only done during shader linking, which leaves
some problems with unlinked shaders and depth-only rendering.

Whether these calls can be safely removed from shader linking
will be investigated in a future commit.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/12516
Cc: mesa-stable
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33264>
2025-01-29 20:05:25 +00:00
..
radv_nir.h radv: Reorder potentially per-primitive FS builtins. 2024-11-28 18:14:56 +00:00
radv_nir_apply_pipeline_layout.c radv: use vk_descriptor_type_is_dynamic 2024-12-19 15:12:58 +00:00
radv_nir_export_multiview.c treewide: use nir_metadata_control_flow 2024-06-17 16:28:14 -04:00
radv_nir_lower_abi.c radv: lower emulated queries with global atomics on GFX12 2025-01-21 08:42:32 +00:00
radv_nir_lower_cooperative_matrix.c radv: use SPDX-License-Identifier 2024-04-08 07:17:31 +00:00
radv_nir_lower_fs_barycentric.c treewide: use new-style derivative builders 2024-08-08 15:26:07 +00:00
radv_nir_lower_fs_intrinsics.c radv: use glsl function name for dFdxfine 2024-08-08 15:26:07 +00:00
radv_nir_lower_hit_attrib_derefs.c radv/rt: don't split array/struct payload variables 2024-09-24 15:41:04 +00:00
radv_nir_lower_intrinsics_early.c treewide: use nir_metadata_control_flow 2024-06-17 16:28:14 -04:00
radv_nir_lower_io.c radv: Lower array derefs of vectors outside of shader linking. 2025-01-29 20:05:25 +00:00
radv_nir_lower_poly_line_smooth.c radv: Always use dynamic line smoothing 2024-07-05 08:58:53 +00:00
radv_nir_lower_primitive_shading_rate.c treewide: use nir_metadata_control_flow 2024-06-17 16:28:14 -04:00
radv_nir_lower_ray_queries.c radv: use SPDX-License-Identifier 2024-04-08 07:17:31 +00:00
radv_nir_lower_view_index.c radv: Implement FS layer ID input as a system value. 2025-01-02 14:07:51 +00:00
radv_nir_lower_viewport_to_zero.c treewide: use nir_metadata_control_flow 2024-06-17 16:28:14 -04:00
radv_nir_lower_vs_inputs.c radv: optimize VS input load components to constants earlier 2024-10-21 15:52:53 +00:00
radv_nir_opt_tid_function.c nir: remove nir_op_is_derivative 2024-10-17 09:50:19 +00:00
radv_nir_remap_color_attachment.c radv: implement VK_KHR_dynamic_rendering_local_read 2024-05-07 10:35:04 +00:00
radv_nir_rt_common.c radv,lvp: fix url to VkAabbPositionsKHR docs 2025-01-28 14:28:59 +00:00
radv_nir_rt_common.h radv: use SPDX-License-Identifier 2024-04-08 07:17:31 +00:00
radv_nir_rt_shader.c radv/rt: Remove nir_intrinsic_execute_callable instrs in monolithic mode 2024-12-13 01:50:58 +00:00