gallium/omx: add video codec supported hook for decode paths.
These never asked the driver for what was supported. Acked-by: Christian König <christian.koenig@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15258>
This commit is contained in:
parent
20dfdcde71
commit
2c3178329b
|
@ -51,6 +51,8 @@
|
|||
#include "vl/vl_video_buffer.h"
|
||||
#include "util/vl_vlc.h"
|
||||
|
||||
#include "vl/vl_codec.h"
|
||||
|
||||
#include "entrypoint.h"
|
||||
#include "vid_dec.h"
|
||||
#include "vid_omx_common.h"
|
||||
|
@ -198,6 +200,10 @@ static OMX_ERRORTYPE vid_dec_Constructor(OMX_COMPONENTTYPE *comp, OMX_STRING nam
|
|||
return OMX_ErrorInsufficientResources;
|
||||
|
||||
screen = priv->screen->pscreen;
|
||||
|
||||
if (!vl_codec_supported(screen, priv->profile, false))
|
||||
return OMX_ErrorInsufficientResources;
|
||||
|
||||
priv->pipe = pipe_create_multimedia_context(screen);
|
||||
if (!priv->pipe)
|
||||
return OMX_ErrorInsufficientResources;
|
||||
|
|
Loading…
Reference in New Issue