radv: fix setting radv_shader_info::user_data_0 with rt
Fixes raytracing pipelines.
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Fixes: 0e81ec98ce ("radv: move user_data_0 to the shader info pass")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22187>
This commit is contained in:
@@ -2777,6 +2777,7 @@ radv_create_rt_prolog(struct radv_device *device)
|
||||
info.desc_set_used_mask = -1; /* just to force indirection */
|
||||
info.wave_size = device->physical_device->rt_wave_size;
|
||||
info.workgroup_size = info.wave_size;
|
||||
info.user_data_0 = R_00B900_COMPUTE_USER_DATA_0;
|
||||
info.cs.is_rt_shader = true;
|
||||
info.cs.uses_ray_launch_size = true;
|
||||
info.cs.uses_dynamic_rt_callable_stack = true;
|
||||
|
||||
@@ -766,6 +766,7 @@ radv_get_user_data_0(const struct radv_device *device, struct radv_shader_info *
|
||||
return R_00B030_SPI_SHADER_USER_DATA_PS_0;
|
||||
case MESA_SHADER_COMPUTE:
|
||||
case MESA_SHADER_TASK:
|
||||
case MESA_SHADER_RAYGEN:
|
||||
return R_00B900_COMPUTE_USER_DATA_0;
|
||||
default:
|
||||
unreachable("invalid shader stage");
|
||||
|
||||
Reference in New Issue
Block a user