• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

hardware/intel/intel-driver


Commit MetaInfo

Revisiónf2a34f94c57e1f7ce975b2068fb087df84b92e3a (tree)
Tiempo2014-11-26 15:31:12
AutorXiang, Haihao <haihao.xiang@inte...>
CommiterXiang, Haihao

Log Message

Remove the check against obj_config->profile

The profile has been validated when creating the corresponding config,
it fixes a JPEG decode regression on non-CHV as well.

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>

Cambiar Resumen

Diferencia incremental

--- a/src/i965_drv_video.c
+++ b/src/i965_drv_video.c
@@ -1798,28 +1798,6 @@ i965_CreateContext(VADriverContextP ctx,
17981798 return vaStatus;
17991799 }
18001800
1801- switch (obj_config->profile) {
1802- case VAProfileH264ConstrainedBaseline:
1803- case VAProfileH264Main:
1804- case VAProfileH264High:
1805- if (!HAS_H264_DECODING(i965) &&
1806- !HAS_H264_ENCODING(i965))
1807- return VA_STATUS_ERROR_UNSUPPORTED_PROFILE;
1808- break;
1809- case VAProfileH264MultiviewHigh:
1810- case VAProfileH264StereoHigh:
1811- if (!HAS_H264_MVC_DECODING(i965))
1812- return VA_STATUS_ERROR_UNSUPPORTED_PROFILE;
1813- break;
1814- case VAProfileJPEGBaseline: { //for gen8 devices
1815- if (!HAS_JPEG_ENCODING(i965))
1816- return VA_STATUS_ERROR_UNSUPPORTED_PROFILE;
1817- break;
1818- }
1819- default:
1820- break;
1821- }
1822-
18231801 *context = contextID;
18241802 obj_context->flags = flag;
18251803 obj_context->context_id = contextID;