diff --git a/src/gallium/frontends/va/picture.c b/src/gallium/frontends/va/picture.c index 6bd799e606c..0a4b5ffc8c3 100644 --- a/src/gallium/frontends/va/picture.c +++ b/src/gallium/frontends/va/picture.c @@ -183,8 +183,8 @@ vlVaHandleVAEncMiscParameterTypeQualityLevel(struct pipe_enc_quality_modes *p, v p->pre_encode_mode = PREENCODING_MODE_DEFAULT; p->vbaq_mode = VBAQ_AUTO; } else { - p->preset_mode = in->preset_mode > PRESET_MODE_QUALITY - ? PRESET_MODE_QUALITY : in->preset_mode; + p->preset_mode = in->preset_mode > PRESET_MODE_HIGH_QUALITY + ? PRESET_MODE_HIGH_QUALITY : in->preset_mode; p->pre_encode_mode = in->pre_encode_mode; p->vbaq_mode = in->vbaq_mode; } diff --git a/src/gallium/frontends/va/va_private.h b/src/gallium/frontends/va/va_private.h index ad2dc4da203..54abc4c5d8a 100644 --- a/src/gallium/frontends/va/va_private.h +++ b/src/gallium/frontends/va/va_private.h @@ -77,6 +77,7 @@ #define PRESET_MODE_SPEED (0) #define PRESET_MODE_BALANCE (1) #define PRESET_MODE_QUALITY (2) +#define PRESET_MODE_HIGH_QUALITY (3) #define PREENCODING_MODE_DISABLE (0) #define PREENCODING_MODE_DEFAULT (1)