vl: morefixes to Luc's patch
authorThomas Balling Sørensen <tball@tball-laptop.(none)>
Wed, 27 Oct 2010 18:27:11 +0000 (20:27 +0200)
committerThomas Balling Sørensen <tball@tball-laptop.(none)>
Wed, 27 Oct 2010 18:27:11 +0000 (20:27 +0200)
src/gallium/state_trackers/va/ftab.c
src/gallium/state_trackers/va/va_buffer.c
src/gallium/state_trackers/va/va_surface.c

index 010c04a7d28e574b08bdb4eda2f2161978acfb35..a567eee9dd1b60582cb1605086b9106faa88e72b 100644 (file)
@@ -47,7 +47,7 @@ static struct VADriverVTable vtable =
        &vlVaBufferSetNumElements, /* VAStatus (*vaBufferSetNumElements) (VADriverContextP ctx,VABufferID buf_id,unsigned int num_elements); */
        &vlVaMapBuffer, /* VAStatus (*vaMapBuffer) (VADriverContextP ctx,VABufferID buf_id,void **pbuf); */
        &vlVaUnmapBuffer, /* VAStatus (*vaUnmapBuffer) (VADriverContextP ctx,VABufferID buf_id); */
-       &vlVaDestroyBuffers, /* VAStatus (*vaDestroyBuffer) (VADriverContextP ctx,VABufferID buffer_id); */
+       &vlVaDestroyBuffer, /* VAStatus (*vaDestroyBuffer) (VADriverContextP ctx,VABufferID buffer_id); */
        &vlVaBeginPicture, /* VAStatus (*vaBeginPicture) (VADriverContextP ctx,VAContextID context,VASurfaceID render_target); */
        &vlVaRenderPicture, /* VAStatus (*vaRenderPicture) (VADriverContextP ctx,VAContextID context,VABufferID *buffers,int num_buffers); */
        &vlVaEndPicture, /* VAStatus (*vaEndPicture) (VADriverContextP ctx,VAContextID context); */
index 19afd7b2a309b174afc610a5f7a712287800ba53..7608a4264ff75c6e8f592710b4aac7b25a8e7771 100644 (file)
@@ -73,7 +73,7 @@ VAStatus vlVaUnmapBuffer(             VADriverContextP ctx,
        return VA_STATUS_ERROR_UNIMPLEMENTED;
 }
 
-VAStatus vlVaDestroyBuffers(           VADriverContextP ctx,
+VAStatus vlVaDestroyBuffer           VADriverContextP ctx,
                                     VABufferID buffer_id)
 {
        if (!ctx)
index 7d234bd51b421bee539f12c8675c44ab4455b73b..314aa7c3d969dfa7271a98abfaacc383a705a4c2 100644 (file)
@@ -33,7 +33,7 @@ VAStatus vlVaCreateSurfaces(       VADriverContextP ctx,
                                                         int width,
                                                         int height,
                                                         int format,
-                                                        int num_surfaces
+                                                        int num_surfaces,
                                                         VASurfaceID *surfaces)
 {
         if (!ctx)
@@ -53,6 +53,7 @@ VAStatus vlVaDestroySurfaces(       VADriverContextP ctx,
 
 VAStatus vlVaSyncSurface(       VADriverContextP ctx,
                                                         VASurfaceID render_target)
+{
         if (!ctx)
                 return VA_STATUS_ERROR_INVALID_CONTEXT;
 
@@ -70,7 +71,6 @@ VAStatus vlVaQuerySurfaceStatus(       VADriverContextP ctx,
 }
 
 VAStatus vlVaPutSurface(       VADriverContextP ctx,
-                                                        VADriverContextP ctx,
                                                         VASurfaceID surface,
                                                         void* draw,
                                                         short srcx,