radv/video: export unified queue header/tail functions.

These will be used for encode as well.

Acked-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25900>
This commit is contained in:
Dave Airlie 2024-01-15 13:37:56 +10:00
parent 1e16851ab1
commit 1ce215c5a3
2 changed files with 7 additions and 2 deletions

View File

@ -60,7 +60,7 @@ radv_vid_buffer_upload_alloc(struct radv_cmd_buffer *cmd_buffer, unsigned size,
}
/* vcn unified queue (sq) ib header */
static void
void
radv_vcn_sq_header(struct radeon_cmdbuf *cs, struct rvcn_sq_var *sq, bool enc)
{
/* vcn ib signature */
@ -78,7 +78,7 @@ radv_vcn_sq_header(struct radeon_cmdbuf *cs, struct rvcn_sq_var *sq, bool enc)
radeon_emit(cs, 0);
}
static void
void
radv_vcn_sq_tail(struct radeon_cmdbuf *cs, struct rvcn_sq_var *sq)
{
uint32_t *end;

View File

@ -17,6 +17,7 @@
#define VL_MACROBLOCK_HEIGHT 16
struct radv_physical_device;
struct rvcn_sq_var;
struct radv_vid_mem {
struct radv_device_memory *mem;
@ -53,4 +54,8 @@ void radv_init_physical_device_decoder(struct radv_physical_device *pdev);
void radv_video_get_profile_alignments(struct radv_physical_device *pdev, const VkVideoProfileListInfoKHR *profile_list,
uint32_t *width_align_out, uint32_t *height_align_out);
void radv_vcn_sq_header(struct radeon_cmdbuf *cs, struct rvcn_sq_var *sq, bool enc);
void radv_vcn_sq_tail(struct radeon_cmdbuf *cs, struct rvcn_sq_var *sq);
#endif /* RADV_VIDEO_H */