mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-14 13:20:28 +01:00
st/va: add enviromental variable to disable interlace
Add environmental variable to disable interlace mode. At VAAPI decoding stage, driver can not distinguish b/w pure decoding case and transcoding case. And since interlace encoding is not supported, we have to disable interlace for transcoding case. The temporary solution is to use enviromental variable to disable interlace mode. Signed-off-by: Boyuan Zhang <boyuan.zhang@amd.com>
This commit is contained in:
parent
b0ceb4cc48
commit
10dec2de2d
1 changed files with 4 additions and 0 deletions
|
|
@ -43,6 +43,8 @@
|
|||
|
||||
#include "va_private.h"
|
||||
|
||||
DEBUG_GET_ONCE_BOOL_OPTION(nointerlace, "VAAPI_DISABLE_INTERLACE", FALSE);
|
||||
|
||||
#include <va/va_drmcommon.h>
|
||||
|
||||
static const enum pipe_format vpp_surface_formats[] = {
|
||||
|
|
@ -620,6 +622,8 @@ vlVaCreateSurfaces2(VADriverContextP ctx, unsigned int format,
|
|||
|
||||
templat.width = width;
|
||||
templat.height = height;
|
||||
if (debug_get_option_nointerlace())
|
||||
templat.interlaced = false;
|
||||
|
||||
memset(surfaces, VA_INVALID_ID, num_surfaces * sizeof(VASurfaceID));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue