hardware/intel/intel-driver
Révision | ad7b5a0233d8ead9a2ca141f3fa75f4bda1045c1 (tree) |
---|---|
l'heure | 2015-09-06 15:13:27 |
Auteur | Zhao Yakui <yakui.zhao@inte...> |
Commiter | Xiang, Haihao |
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>
@@ -564,6 +564,25 @@ i965_QueryConfigProfiles(VADriverContextP ctx, | ||
564 | 564 | profile_list[i++] = VAProfileHEVCMain; |
565 | 565 | } |
566 | 566 | |
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 | + | |
567 | 586 | /* If the assert fails then I965_MAX_PROFILES needs to be bigger */ |
568 | 587 | ASSERT_RET(i <= I965_MAX_PROFILES, VA_STATUS_ERROR_OPERATION_FAILED); |
569 | 588 | *num_profiles = i; |
@@ -648,6 +667,20 @@ i965_QueryConfigEntrypoints(VADriverContextP ctx, | ||
648 | 667 | |
649 | 668 | break; |
650 | 669 | |
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 | + | |
651 | 684 | default: |
652 | 685 | break; |
653 | 686 | } |
@@ -745,6 +778,13 @@ i965_validate_config(VADriverContextP ctx, VAProfile profile, | ||
745 | 778 | |
746 | 779 | break; |
747 | 780 | |
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 | + | |
748 | 788 | default: |
749 | 789 | va_status = VA_STATUS_ERROR_UNSUPPORTED_PROFILE; |
750 | 790 | break; |