radeonsi: export si_init_compute_preamble_state for task shader

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38044>
This commit is contained in:
Qiang Yu 2025-06-11 10:07:17 +08:00 committed by Marge Bot
parent 0ee4747678
commit e3ab6249f2
2 changed files with 2 additions and 2 deletions

View file

@ -4978,8 +4978,7 @@ void si_init_screen_state_functions(struct si_screen *sscreen)
si_create_vertex_state, si_vertex_state_destroy);
}
static void si_init_compute_preamble_state(struct si_context *sctx,
struct si_pm4_state *pm4)
void si_init_compute_preamble_state(struct si_context *sctx, struct si_pm4_state *pm4)
{
uint64_t border_color_va =
sctx->border_color_buffer ? sctx->border_color_buffer->gpu_address : 0;

View file

@ -638,6 +638,7 @@ void si_init_state_compute_functions(struct si_context *sctx);
void si_init_state_functions(struct si_context *sctx);
void si_init_screen_state_functions(struct si_screen *sscreen);
bool si_init_gfx_preamble_state(struct si_context *sctx);
void si_init_compute_preamble_state(struct si_context *sctx, struct si_pm4_state *pm4);
void si_make_buffer_descriptor(struct si_screen *screen, struct si_resource *buf,
enum pipe_format format, unsigned offset, unsigned num_elements,
uint32_t *state);