mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-22 14:00:37 +02:00
radv: Fix returning an expression from a void function
Fixes: d5de56bf ("radv: add RT shader args")
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21932>
This commit is contained in:
parent
5c4c9fd454
commit
f8566533ea
1 changed files with 4 additions and 2 deletions
|
|
@ -618,8 +618,10 @@ radv_declare_shader_args(const struct radv_device *device, const struct radv_pip
|
|||
|
||||
radv_init_shader_args(device, stage, args);
|
||||
|
||||
if (gl_shader_stage_is_rt(stage))
|
||||
return radv_declare_rt_shader_args(gfx_level, args);
|
||||
if (gl_shader_stage_is_rt(stage)) {
|
||||
radv_declare_rt_shader_args(gfx_level, args);
|
||||
return;
|
||||
}
|
||||
|
||||
allocate_user_sgprs(gfx_level, info, args, stage, has_previous_stage, previous_stage,
|
||||
needs_view_index, has_ngg_query, has_ngg_provoking_vtx, key, &user_sgpr_info);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue