• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

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

hardware/intel/libva


Commit MetaInfo

修订版2f21a30e2734ce0209b394c764fbd2f9d4b76130 (tree)
时间2009-08-05 12:49:33
作者Xiang, Haihao <haihao.xiang@inte...>
CommiterXiang, Haihao

Log Message

i965_drv_driver: fix assertion failure

更改概述

差异

--- a/i965_drv_video/i965_drv_video.c
+++ b/i965_drv_video/i965_drv_video.c
@@ -70,6 +70,8 @@ i965_QueryConfigEntrypoints(VADriverContextP ctx,
7070 VAEntrypoint *entrypoint_list, /* out */
7171 int *num_entrypoints) /* out */
7272 {
73+ VAStatus vaStatus = VA_STATUS_SUCCESS;
74+
7375 switch (profile) {
7476 case VAProfileMPEG2Simple:
7577 case VAProfileMPEG2Main:
@@ -78,7 +80,7 @@ i965_QueryConfigEntrypoints(VADriverContextP ctx,
7880 break;
7981
8082 default:
81- assert(0);
83+ vaStatus = VA_STATUS_ERROR_UNSUPPORTED_PROFILE;
8284 *num_entrypoints = 0;
8385 break;
8486 }
@@ -86,7 +88,7 @@ i965_QueryConfigEntrypoints(VADriverContextP ctx,
8688 /* If the assert fails then I965_MAX_ENTRYPOINTS needs to be bigger */
8789 assert(*num_entrypoints <= I965_MAX_ENTRYPOINTS);
8890
89- return VA_STATUS_SUCCESS;
91+ return vaStatus;
9092 }
9193
9294 VAStatus
@@ -173,7 +175,6 @@ i965_CreateConfig(VADriverContextP ctx,
173175 break;
174176
175177 default:
176- assert(0);
177178 vaStatus = VA_STATUS_ERROR_UNSUPPORTED_PROFILE;
178179 break;
179180 }