summaryrefslogtreecommitdiff
path: root/src/i965_drv_video.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/i965_drv_video.c')
-rwxr-xr-xsrc/i965_drv_video.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/i965_drv_video.c b/src/i965_drv_video.c
index 7f35f01..100ed9b 100755
--- a/src/i965_drv_video.c
+++ b/src/i965_drv_video.c
@@ -676,7 +676,9 @@ i965_GetConfigAttributes(VADriverContextP ctx,
case VAConfigAttribEncQualityRange:
if (entrypoint == VAEntrypointEncSlice) {
attrib_list[i].value = 1;
- if(IS_GEN7(i965->intel.device_info))
+ if (profile == VAProfileH264ConstrainedBaseline ||
+ profile == VAProfileH264Main ||
+ profile == VAProfileH264High )
attrib_list[i].value = ENCODER_QUALITY_RANGE;
break;
}