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:

committed by
Marge Bot

parent
80683c220b
commit
6e4f26827c
@@ -944,12 +944,6 @@ radv_save_descriptors(struct radv_cmd_buffer *cmd_buffer, VkPipelineBindPoint bi
|
||||
radv_write_data(cmd_buffer, V_370_ME, va, MAX_SETS * 2, data, false);
|
||||
}
|
||||
|
||||
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];
|
||||
}
|
||||
|
||||
static void
|
||||
radv_emit_userdata_address(struct radv_device *device, struct radeon_cmdbuf *cs, struct radv_shader *shader,
|
||||
uint32_t base_reg, int idx, uint64_t va)
|
||||
|
@@ -675,8 +675,6 @@ bool radv_gang_init(struct radv_cmd_buffer *cmd_buffer);
|
||||
void radv_set_descriptor_set(struct radv_cmd_buffer *cmd_buffer, VkPipelineBindPoint bind_point,
|
||||
struct radv_descriptor_set *set, unsigned idx);
|
||||
|
||||
const struct radv_userdata_info *radv_get_user_sgpr(const struct radv_shader *shader, int idx);
|
||||
|
||||
void radv_update_ds_clear_metadata(struct radv_cmd_buffer *cmd_buffer, const struct radv_image_view *iview,
|
||||
VkClearDepthStencilValue ds_clear_value, VkImageAspectFlags aspects);
|
||||
|
||||
|
@@ -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)
|
||||
|
@@ -787,4 +787,6 @@ void radv_shader_combine_cfg_vs_gs(const struct radv_shader *vs, const struct ra
|
||||
void radv_shader_combine_cfg_tes_gs(const struct radv_shader *tes, const struct radv_shader *gs, uint32_t *rsrc1_out,
|
||||
uint32_t *rsrc2_out);
|
||||
|
||||
const struct radv_userdata_info *radv_get_user_sgpr(const struct radv_shader *shader, int idx);
|
||||
|
||||
#endif /* RADV_SHADER_H */
|
||||
|
Reference in New Issue
Block a user