And add required forward declarations.
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4319>
#ifndef _RADEON_UVD_ENC_H
#define _RADEON_UVD_ENC_H
+#include "radeon_video.h"
+
#define RENC_UVD_FW_INTERFACE_MAJOR_VERSION 1
#define RENC_UVD_FW_INTERFACE_MINOR_VERSION 1
bool need_feedback;
};
+struct si_screen;
+
void radeon_uvd_enc_1_1_init(struct radeon_uvd_encoder *enc);
bool si_radeon_uvd_enc_supported(struct si_screen *sscreen);
#define RADEON_VCE_H
#include "util/list.h"
+#include "radeon_video.h"
#define RVCE_CS(value) (enc->cs->current.buf[enc->cs->current.cdw++] = (value))
#define RVCE_BEGIN(cmd) { \
#ifndef _RADEON_VCN_DEC_H
#define _RADEON_VCN_DEC_H
+#include "radeon_video.h"
+
#define RDECODE_PKT_TYPE_S(x) (((unsigned)(x) & 0x3) << 30)
#define RDECODE_PKT_TYPE_G(x) (((x) >> 30) & 0x3)
#define RDECODE_PKT_TYPE_C 0x3FFFFFFF
#ifndef _RADEON_VCN_ENC_H
#define _RADEON_VCN_ENC_H
+#include "radeon_video.h"
+
#define RENCODE_IB_OP_INITIALIZE 0x01000001
#define RENCODE_IB_OP_CLOSE_SESSION 0x01000002
#define RENCODE_IB_OP_ENCODE 0x01000003