radv: Make radv_compute_dispatch non-static

To avoid adding yet another radv_*_dispatch helper.

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21071>
This commit is contained in:
Konstantin Seurer 2023-02-02 15:54:53 +01:00 committed by Marge Bot
parent 26754f658e
commit 77b0a4c025
2 changed files with 28 additions and 24 deletions

View file

@ -9538,29 +9538,6 @@ radv_CmdExecuteGeneratedCommandsNV(VkCommandBuffer commandBuffer, VkBool32 isPre
radv_after_draw(cmd_buffer);
}
struct radv_dispatch_info {
/**
* Determine the layout of the grid (in block units) to be used.
*/
uint32_t blocks[3];
/**
* A starting offset for the grid. If unaligned is set, the offset
* must still be aligned.
*/
uint32_t offsets[3];
/**
* Whether it's an unaligned compute dispatch.
*/
bool unaligned;
/**
* Indirect compute parameters resource.
*/
struct radeon_winsys_bo *indirect;
uint64_t va;
};
static void
radv_emit_dispatch_packets(struct radv_cmd_buffer *cmd_buffer,
struct radv_compute_pipeline *pipeline,
@ -9801,7 +9778,7 @@ radv_dispatch(struct radv_cmd_buffer *cmd_buffer, const struct radv_dispatch_inf
radv_cmd_buffer_after_draw(cmd_buffer, RADV_CMD_FLAG_CS_PARTIAL_FLUSH);
}
static void
void
radv_compute_dispatch(struct radv_cmd_buffer *cmd_buffer, const struct radv_dispatch_info *info)
{
radv_dispatch(cmd_buffer, info, cmd_buffer->state.compute_pipeline,

View file

@ -1688,6 +1688,33 @@ struct radv_cmd_buffer {
extern const struct vk_command_buffer_ops radv_cmd_buffer_ops;
struct radv_dispatch_info {
/**
* Determine the layout of the grid (in block units) to be used.
*/
uint32_t blocks[3];
/**
* A starting offset for the grid. If unaligned is set, the offset
* must still be aligned.
*/
uint32_t offsets[3];
/**
* Whether it's an unaligned compute dispatch.
*/
bool unaligned;
/**
* Indirect compute parameters resource.
*/
struct radeon_winsys_bo *indirect;
uint64_t va;
};
void radv_compute_dispatch(struct radv_cmd_buffer *cmd_buffer,
const struct radv_dispatch_info *info);
struct radv_image;
struct radv_image_view;