Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

Commit d408906

Browse files
yakuizhaoSean V Kelley
authored and
Sean V Kelley
committed
Remove the va_wrapper in hybrid
Signed-off-by: Sean V Kelley <[email protected]>
1 parent bf8dfbe commit d408906

File tree

4 files changed

+0
-774
lines changed

4 files changed

+0
-774
lines changed

src/Makefile.am

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ driver_files = \
7979
media_drv_gen8_render.c \
8080
media_drv_gen9_render.c \
8181
media_drv_hybrid_vp9_common.cpp \
82-
va_wrapper.c \
8382
$(NULL)
8483

8584
if USE_X11

src/media_drv_init.c

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
#include "media_drv_driver.h"
3939
#include "media_drv_init.h"
4040
#include "media_drv_decoder.h"
41-
#include "va_wrapper.h"
4241

4342
//#define DEBUG
4443
#define DEFAULT_BRIGHTNESS 0
@@ -2198,10 +2197,6 @@ media_DestroySurfaces (VADriverContextP ctx,
21982197
{
21992198
struct object_surface *obj_surface = SURFACE (surface_list[i]);
22002199

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-
22052200
MEDIA_DRV_ASSERT (obj_surface);
22062201
media_destroy_surface (&drv_ctx->surface_heap,
22072202
(struct object_base *) obj_surface);
@@ -2624,8 +2619,6 @@ media_drv_init (VADriverContextP ctx)
26242619
drv_ctx->current_context_id = VA_INVALID_ID;
26252620
ctx->str_vendor = drv_ctx->drv_version;
26262621

2627-
drv_ctx->wrapper_ctx = vawrapper_init(ctx);
2628-
26292622
return VA_STATUS_SUCCESS;
26302623

26312624
#ifdef HAVE_VA_X11
@@ -2663,9 +2656,6 @@ media_Terminate (VADriverContextP ctx)
26632656

26642657
media_driver_terminate (ctx);
26652658

2666-
if(drv_ctx->wrapper_ctx)
2667-
vawrapper_term(drv_ctx->wrapper_ctx);
2668-
26692659
if (drv_ctx)
26702660
media_drv_free_memory (drv_ctx);
26712661
ctx->pDriverData = NULL;
@@ -2753,39 +2743,3 @@ __vaDriverInit_0_34 (VADriverContextP ctx)
27532743
}
27542744

27552745

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

Comments
 (0)