radv: move radv_get_user_sgpr() to radv_shader.c

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28592>
This commit is contained in:
Samuel Pitoiset
2024-04-04 15:41:25 +02:00
committed by Marge Bot
parent 80683c220b
commit 6e4f26827c
4 changed files with 8 additions and 8 deletions

View File

@@ -2965,6 +2965,12 @@ radv_compute_spi_ps_input(const struct radv_graphics_state_key *gfx_state, const
return spi_ps_input;
}
const struct radv_userdata_info *
radv_get_user_sgpr(const struct radv_shader *shader, int idx)
{
return &shader->info.user_sgprs_locs.shader_data[idx];
}
VkResult
radv_dump_shader_stats(struct radv_device *device, struct radv_pipeline *pipeline, struct radv_shader *shader,
gl_shader_stage stage, FILE *output)