summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/va.c18
-rwxr-xr-xsrc/va_backend.h8
2 files changed, 26 insertions, 0 deletions
diff --git a/src/va.c b/src/va.c
index 1eb7117..1d7945c 100644
--- a/src/va.c
+++ b/src/va.c
@@ -1271,3 +1271,21 @@ VAStatus vaDbgCopySurfaceToBuffer(VADisplay dpy,
return ctx->vtable.vaDbgCopySurfaceToBuffer( ctx, surface, buffer, stride );
}
+
+VAStatus vaDbgCreateSurfaceFromUB(
+ VADisplay dpy,
+ unsigned int width,
+ unsigned int height,
+ unsigned int size,
+ void *start,
+ VASurfaceID *surface /* out */
+)
+{
+ VADriverContextP ctx;
+ CHECK_DISPLAY(dpy);
+ ctx = CTX(dpy);
+
+ TRACE(vaDbgCreateSurfaceFromUB);
+ return ctx->vtable.vaDbgCreateSurfaceFromUB( ctx, width, height, size, start, surface );
+}
+
diff --git a/src/va_backend.h b/src/va_backend.h
index 5d05fca..7411eac 100755
--- a/src/va_backend.h
+++ b/src/va_backend.h
@@ -393,6 +393,14 @@ struct VADriverVTable
void **buffer, /* out */
unsigned int *stride /* out */
);
+ VAStatus (*vaDbgCreateSurfaceFromUB) (
+ VADriverContextP ctx,
+ unsigned int width,
+ unsigned int height,
+ unsigned int size,
+ void *start,
+ VASurfaceID *surface /* out */
+ );
};
struct VADriverContext