libva-driver-intel: Add patch by btbn to track and workaround empty surfaces

This commit is contained in:
fritsch 2013-11-15 16:02:44 +01:00
parent 50f1c9e6e7
commit d09136abe9

View File

@ -0,0 +1,16 @@
diff --git a/src/i965_drv_video.c b/src/i965_drv_video.c
index 31dafa2..a58eb7b 100755
--- a/src/i965_drv_video.c
+++ b/src/i965_drv_video.c
@@ -2358,7 +2358,11 @@ i965_QuerySurfaceStatus(VADriverContextP ctx,
*status = VASurfaceReady;
}
} else {
+#ifdef HAVE_VA_SURFACE_STATUS_EMPTY
+ *status = VASurfaceReady | VASurfaceEmpty;
+#else
*status = VASurfaceReady;
+#endif
}
return VA_STATUS_SUCCESS;