|
38 | 38 | #include "media_drv_driver.h"
|
39 | 39 | #include "media_drv_init.h"
|
40 | 40 | #include "media_drv_decoder.h"
|
41 |
| -#include "va_wrapper.h" |
42 | 41 |
|
43 | 42 | //#define DEBUG
|
44 | 43 | #define DEFAULT_BRIGHTNESS 0
|
@@ -2198,10 +2197,6 @@ media_DestroySurfaces (VADriverContextP ctx,
|
2198 | 2197 | {
|
2199 | 2198 | struct object_surface *obj_surface = SURFACE (surface_list[i]);
|
2200 | 2199 |
|
2201 |
| - // make sure the corresponding surface in the wrapper is also be destroyed |
2202 |
| - if(drv_ctx->wrapper_ctx) |
2203 |
| - vawrapper_destroysurface(drv_ctx->wrapper_ctx, surface_list[i]); |
2204 |
| - |
2205 | 2200 | MEDIA_DRV_ASSERT (obj_surface);
|
2206 | 2201 | media_destroy_surface (&drv_ctx->surface_heap,
|
2207 | 2202 | (struct object_base *) obj_surface);
|
@@ -2624,8 +2619,6 @@ media_drv_init (VADriverContextP ctx)
|
2624 | 2619 | drv_ctx->current_context_id = VA_INVALID_ID;
|
2625 | 2620 | ctx->str_vendor = drv_ctx->drv_version;
|
2626 | 2621 |
|
2627 |
| - drv_ctx->wrapper_ctx = vawrapper_init(ctx); |
2628 |
| - |
2629 | 2622 | return VA_STATUS_SUCCESS;
|
2630 | 2623 |
|
2631 | 2624 | #ifdef HAVE_VA_X11
|
@@ -2663,9 +2656,6 @@ media_Terminate (VADriverContextP ctx)
|
2663 | 2656 |
|
2664 | 2657 | media_driver_terminate (ctx);
|
2665 | 2658 |
|
2666 |
| - if(drv_ctx->wrapper_ctx) |
2667 |
| - vawrapper_term(drv_ctx->wrapper_ctx); |
2668 |
| - |
2669 | 2659 | if (drv_ctx)
|
2670 | 2660 | media_drv_free_memory (drv_ctx);
|
2671 | 2661 | ctx->pDriverData = NULL;
|
@@ -2753,39 +2743,3 @@ __vaDriverInit_0_34 (VADriverContextP ctx)
|
2753 | 2743 | }
|
2754 | 2744 |
|
2755 | 2745 |
|
2756 |
| -VAStatus |
2757 |
| -vawr_DeriveBuffer(VADriverContextP ctx, |
2758 |
| - VABufferType type, |
2759 |
| - UINT size, |
2760 |
| - UINT num_elements, |
2761 |
| - VOID * data, |
2762 |
| - VABufferInfo *buf_info, VABufferID *buf_id) |
2763 |
| -{ |
2764 |
| - MEDIA_DRV_CONTEXT *drv_ctx = NULL; |
2765 |
| - dri_bo * store_bo = NULL; |
2766 |
| - |
2767 |
| - MEDIA_DRV_ASSERT (ctx); |
2768 |
| - drv_ctx = ctx->pDriverData; |
2769 |
| - MEDIA_DRV_ASSERT (drv_ctx); |
2770 |
| - |
2771 |
| - if(buf_info->mem_type == VA_SURFACE_ATTRIB_MEM_TYPE_KERNEL_DRM) |
2772 |
| - store_bo = |
2773 |
| - drm_intel_bo_gem_create_from_name (drv_ctx->drv_data.bufmgr, |
2774 |
| - "gem flinked vaapi surface", |
2775 |
| - buf_info->handle); |
2776 |
| - else if (buf_info->mem_type == VA_SURFACE_ATTRIB_MEM_TYPE_DRM_PRIME) |
2777 |
| - store_bo = |
2778 |
| - drm_intel_bo_gem_create_from_prime (drv_ctx->drv_data.bufmgr, |
2779 |
| - buf_info->handle, |
2780 |
| - buf_info->mem_size); |
2781 |
| - else |
2782 |
| - return VA_STATUS_ERROR_INVALID_PARAMETER; |
2783 |
| - |
2784 |
| - return media_create_buffer_internal(ctx, 0, type, size, num_elements, data, store_bo, buf_id); |
2785 |
| -} |
2786 |
| - |
2787 |
| -VAStatus |
2788 |
| -vawr_DestroyBuffer(VADriverContextP ctx, VABufferID buf_id) |
2789 |
| -{ |
2790 |
| - return media_DestroyBuffer(ctx, buf_id); |
2791 |
| -} |
0 commit comments