radv: do not lower loading TESS/ESGS rings using the ABI for LLVM
LLVM uses an implicit argument for the ring offsets and this lowering
was just broken.
This fixes tessellation and geometry on all generations with LLVM.
Fixes: 896a55f47d
("radv: Lower ABI in NIR for tess/ESGS/NGG shader arguments.")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16530>
This commit is contained in:

committed by
Marge Bot

parent
6b1e73c700
commit
07eba9a15a
@@ -4552,7 +4552,8 @@ radv_create_shaders(struct radv_pipeline *pipeline, struct radv_pipeline_layout
|
||||
|
||||
ac_nir_lower_global_access(stages[i].nir);
|
||||
radv_nir_lower_abi(stages[i].nir, device->physical_device->rad_info.gfx_level,
|
||||
&stages[i].info, &stages[i].args, pipeline_key);
|
||||
&stages[i].info, &stages[i].args, pipeline_key,
|
||||
radv_use_llvm_for_stage(device, i));
|
||||
radv_optimize_nir_algebraic(
|
||||
stages[i].nir, io_to_mem || lowered_ngg || i == MESA_SHADER_COMPUTE || i == MESA_SHADER_TASK);
|
||||
|
||||
|
Reference in New Issue
Block a user