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

Commit

Permalink
Remove the va_wrapper in hybrid
Browse files Browse the repository at this point in the history
Signed-off-by: Sean V Kelley <[email protected]>
  • Loading branch information
yakuizhao authored and Sean V Kelley committed Sep 2, 2015
1 parent bf8dfbe commit d408906
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 774 deletions.
1 change: 0 additions & 1 deletion src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ driver_files = \
media_drv_gen8_render.c \
media_drv_gen9_render.c \
media_drv_hybrid_vp9_common.cpp \
va_wrapper.c \
$(NULL)

if USE_X11
Expand Down
46 changes: 0 additions & 46 deletions src/media_drv_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
#include "media_drv_driver.h"
#include "media_drv_init.h"
#include "media_drv_decoder.h"
#include "va_wrapper.h"

//#define DEBUG
#define DEFAULT_BRIGHTNESS 0
Expand Down Expand Up @@ -2198,10 +2197,6 @@ media_DestroySurfaces (VADriverContextP ctx,
{
struct object_surface *obj_surface = SURFACE (surface_list[i]);

// make sure the corresponding surface in the wrapper is also be destroyed
if(drv_ctx->wrapper_ctx)
vawrapper_destroysurface(drv_ctx->wrapper_ctx, surface_list[i]);

MEDIA_DRV_ASSERT (obj_surface);
media_destroy_surface (&drv_ctx->surface_heap,
(struct object_base *) obj_surface);
Expand Down Expand Up @@ -2624,8 +2619,6 @@ media_drv_init (VADriverContextP ctx)
drv_ctx->current_context_id = VA_INVALID_ID;
ctx->str_vendor = drv_ctx->drv_version;

drv_ctx->wrapper_ctx = vawrapper_init(ctx);

return VA_STATUS_SUCCESS;

#ifdef HAVE_VA_X11
Expand Down Expand Up @@ -2663,9 +2656,6 @@ media_Terminate (VADriverContextP ctx)

media_driver_terminate (ctx);

if(drv_ctx->wrapper_ctx)
vawrapper_term(drv_ctx->wrapper_ctx);

if (drv_ctx)
media_drv_free_memory (drv_ctx);
ctx->pDriverData = NULL;
Expand Down Expand Up @@ -2753,39 +2743,3 @@ __vaDriverInit_0_34 (VADriverContextP ctx)
}


VAStatus
vawr_DeriveBuffer(VADriverContextP ctx,
VABufferType type,
UINT size,
UINT num_elements,
VOID * data,
VABufferInfo *buf_info, VABufferID *buf_id)
{
MEDIA_DRV_CONTEXT *drv_ctx = NULL;
dri_bo * store_bo = NULL;

MEDIA_DRV_ASSERT (ctx);
drv_ctx = ctx->pDriverData;
MEDIA_DRV_ASSERT (drv_ctx);

if(buf_info->mem_type == VA_SURFACE_ATTRIB_MEM_TYPE_KERNEL_DRM)
store_bo =
drm_intel_bo_gem_create_from_name (drv_ctx->drv_data.bufmgr,
"gem flinked vaapi surface",
buf_info->handle);
else if (buf_info->mem_type == VA_SURFACE_ATTRIB_MEM_TYPE_DRM_PRIME)
store_bo =
drm_intel_bo_gem_create_from_prime (drv_ctx->drv_data.bufmgr,
buf_info->handle,
buf_info->mem_size);
else
return VA_STATUS_ERROR_INVALID_PARAMETER;

return media_create_buffer_internal(ctx, 0, type, size, num_elements, data, store_bo, buf_id);
}

VAStatus
vawr_DestroyBuffer(VADriverContextP ctx, VABufferID buf_id)
{
return media_DestroyBuffer(ctx, buf_id);
}
Loading

0 comments on commit d408906

Please sign in to comment.