diff options
-rw-r--r-- | src/va.c | 18 | ||||
-rwxr-xr-x | src/va_backend.h | 8 |
2 files changed, 26 insertions, 0 deletions
@@ -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 |