• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

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

Révisionad7b5a0233d8ead9a2ca141f3fa75f4bda1045c1 (tree)
l'heure2015-09-06 15:13:27
AuteurZhao Yakui <yakui.zhao@inte...>
CommiterXiang, Haihao

Message de Log

Export the profile/entrypoints for the wrapped backend drivers

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Signed-off-by: Sean V Kelley <seanvk@posteo.de>

Change Summary

Modification

--- a/src/i965_drv_video.c
+++ b/src/i965_drv_video.c
@@ -564,6 +564,25 @@ i965_QueryConfigProfiles(VADriverContextP ctx,
564564 profile_list[i++] = VAProfileHEVCMain;
565565 }
566566
567+ if (i965->wrapper_pdrvctx) {
568+ VAProfile wrapper_list[4];
569+ int wrapper_num;
570+ VADriverContextP pdrvctx;
571+ VAStatus va_status;
572+
573+ pdrvctx = i965->wrapper_pdrvctx;
574+ CALL_VTABLE(pdrvctx, va_status,
575+ vaQueryConfigProfiles(pdrvctx,
576+ wrapper_list, &wrapper_num));
577+
578+ if (va_status == VA_STATUS_SUCCESS) {
579+ int j;
580+ for (j = 0; j < wrapper_num; j++)
581+ if (wrapper_list[j] != VAProfileNone)
582+ profile_list[i++] = wrapper_list[j];
583+ }
584+ }
585+
567586 /* If the assert fails then I965_MAX_PROFILES needs to be bigger */
568587 ASSERT_RET(i <= I965_MAX_PROFILES, VA_STATUS_ERROR_OPERATION_FAILED);
569588 *num_profiles = i;
@@ -648,6 +667,20 @@ i965_QueryConfigEntrypoints(VADriverContextP ctx,
648667
649668 break;
650669
670+ case VAProfileVP9Profile0:
671+ if (i965->wrapper_pdrvctx) {
672+ VAStatus va_status = VA_STATUS_SUCCESS;
673+ VADriverContextP pdrvctx = i965->wrapper_pdrvctx;
674+
675+ CALL_VTABLE(pdrvctx, va_status,
676+ vaQueryConfigEntrypoints(pdrvctx, profile,
677+ entrypoint_list,
678+ num_entrypoints));
679+ return va_status;
680+ }
681+
682+ break;
683+
651684 default:
652685 break;
653686 }
@@ -745,6 +778,13 @@ i965_validate_config(VADriverContextP ctx, VAProfile profile,
745778
746779 break;
747780
781+ case VAProfileVP9Profile0:
782+ if (i965->wrapper_pdrvctx)
783+ va_status = VA_STATUS_SUCCESS;
784+ else
785+ va_status = VA_STATUS_ERROR_UNSUPPORTED_ENTRYPOINT;
786+ break;
787+
748788 default:
749789 va_status = VA_STATUS_ERROR_UNSUPPORTED_PROFILE;
750790 break;