mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
frontends/va: fix undefined ref error
When building with "-Dvideo-codecs=h264dec,h265dec,av1dec" va/encode.c
won't be built but it's still required because it's used from
picture.c
Fixes: c4f05bdf60 ("frontends/va: include picture_*.c based on selected codec")
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39482>
This commit is contained in:
parent
fea431ded3
commit
82a51ba9b3
1 changed files with 17 additions and 3 deletions
|
|
@ -664,10 +664,8 @@ PROC void vlVaHandleSliceParameterBufferAV1(vlVaContext *context, vlVaBuffer *bu
|
|||
#undef TAIL
|
||||
#undef TAIL_S
|
||||
|
||||
VAStatus vlVaHandleEncBufferType(vlVaDriver *drv, vlVaContext *context, vlVaBuffer *buf);
|
||||
void vlVaHandleVAEncMiscParameterTypeQualityLevel(struct pipe_enc_quality_modes *p, vlVaQualityBits *in);
|
||||
|
||||
#if VIDEO_CODEC_H264ENC
|
||||
#define HAS_ENCODE
|
||||
#define PROC
|
||||
#define TAIL
|
||||
#else
|
||||
|
|
@ -688,6 +686,7 @@ PROC VAStatus vlVaHandleVAEncMiscParameterTypeHRDH264(vlVaContext *context, VAEn
|
|||
#undef TAIL
|
||||
|
||||
#if VIDEO_CODEC_H265ENC
|
||||
#define HAS_ENCODE
|
||||
#define PROC
|
||||
#define TAIL
|
||||
#else
|
||||
|
|
@ -709,6 +708,7 @@ PROC VAStatus vlVaHandleVAEncMiscParameterTypeTemporalLayerHEVC(vlVaContext *con
|
|||
|
||||
#if VA_CHECK_VERSION(1, 16, 0)
|
||||
#if VIDEO_CODEC_AV1ENC
|
||||
#define HAS_ENCODE
|
||||
#define PROC
|
||||
#define TAIL
|
||||
#else
|
||||
|
|
@ -727,4 +727,18 @@ PROC VAStatus vlVaHandleVAEncSliceParameterBufferTypeAV1(vlVaDriver *drv, vlVaCo
|
|||
#undef PROC
|
||||
#undef TAIL
|
||||
#endif
|
||||
|
||||
#ifdef HAS_ENCODE
|
||||
#define PROC
|
||||
#define TAIL
|
||||
#else
|
||||
#define PROC static inline
|
||||
#define TAIL {return VA_STATUS_ERROR_UNIMPLEMENTED;}
|
||||
#endif
|
||||
PROC VAStatus vlVaHandleEncBufferType(vlVaDriver *drv, vlVaContext *context, vlVaBuffer *buf) TAIL;
|
||||
#undef PROC
|
||||
#undef TAIL
|
||||
|
||||
void vlVaHandleVAEncMiscParameterTypeQualityLevel(struct pipe_enc_quality_modes *p, vlVaQualityBits *in);
|
||||
|
||||
#endif //VA_PRIVATE_H
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue