hardware/intel/intel-driver
Revisión | f2a34f94c57e1f7ce975b2068fb087df84b92e3a (tree) |
---|---|
Tiempo | 2014-11-26 15:31:12 |
Autor | Xiang, Haihao <haihao.xiang@inte...> |
Commiter | Xiang, Haihao |
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>
@@ -1798,28 +1798,6 @@ i965_CreateContext(VADriverContextP ctx, | ||
1798 | 1798 | return vaStatus; |
1799 | 1799 | } |
1800 | 1800 | |
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 | - | |
1823 | 1801 | *context = contextID; |
1824 | 1802 | obj_context->flags = flag; |
1825 | 1803 | obj_context->context_id = contextID; |