diff options
Diffstat (limited to 'meta-emenlow/recipes/libva/libva-0.31.0/034_g45_fix_return_for_unimpl.patch')
-rw-r--r-- | meta-emenlow/recipes/libva/libva-0.31.0/034_g45_fix_return_for_unimpl.patch | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/meta-emenlow/recipes/libva/libva-0.31.0/034_g45_fix_return_for_unimpl.patch b/meta-emenlow/recipes/libva/libva-0.31.0/034_g45_fix_return_for_unimpl.patch new file mode 100644 index 0000000000..a4612133bb --- /dev/null +++ b/meta-emenlow/recipes/libva/libva-0.31.0/034_g45_fix_return_for_unimpl.patch | |||
@@ -0,0 +1,83 @@ | |||
1 | From 3935c6a836b8f90947f0af658a76b97a08a03c67 Mon Sep 17 00:00:00 2001 | ||
2 | From: Gwenole Beauchesne <gbeauchesne@splitted-desktop.com> | ||
3 | Date: Wed, 4 Nov 2009 13:23:40 +0000 | ||
4 | Subject: [PATCH] [G45] Don't return VA_STATUS_SUCCESS for unimplemented functions. | ||
5 | |||
6 | --- | ||
7 | i965_drv_video/i965_drv_video.c | 18 +++++++++++------- | ||
8 | 1 files changed, 11 insertions(+), 7 deletions(-) | ||
9 | |||
10 | diff --git a/i965_drv_video/i965_drv_video.c b/i965_drv_video/i965_drv_video.c | ||
11 | index 10baffb..d8a7bd1 100644 | ||
12 | --- a/i965_drv_video/i965_drv_video.c | ||
13 | +++ b/i965_drv_video/i965_drv_video.c | ||
14 | @@ -534,7 +534,8 @@ i965_SetSubpictureImage(VADriverContextP ctx, | ||
15 | VASubpictureID subpicture, | ||
16 | VAImageID image) | ||
17 | { | ||
18 | - return VA_STATUS_SUCCESS; | ||
19 | + /* TODO */ | ||
20 | + return VA_STATUS_ERROR_UNIMPLEMENTED; | ||
21 | } | ||
22 | |||
23 | VAStatus | ||
24 | @@ -544,7 +545,8 @@ i965_SetSubpictureChromakey(VADriverContextP ctx, | ||
25 | unsigned int chromakey_max, | ||
26 | unsigned int chromakey_mask) | ||
27 | { | ||
28 | - return VA_STATUS_SUCCESS; | ||
29 | + /* TODO */ | ||
30 | + return VA_STATUS_ERROR_UNIMPLEMENTED; | ||
31 | } | ||
32 | |||
33 | VAStatus | ||
34 | @@ -552,7 +554,8 @@ i965_SetSubpictureGlobalAlpha(VADriverContextP ctx, | ||
35 | VASubpictureID subpicture, | ||
36 | float global_alpha) | ||
37 | { | ||
38 | - return VA_STATUS_SUCCESS; | ||
39 | + /* TODO */ | ||
40 | + return VA_STATUS_ERROR_UNIMPLEMENTED; | ||
41 | } | ||
42 | |||
43 | VAStatus | ||
44 | @@ -1141,7 +1144,7 @@ i965_GetDisplayAttributes(VADriverContextP ctx, | ||
45 | int num_attributes) | ||
46 | { | ||
47 | /* TODO */ | ||
48 | - return VA_STATUS_ERROR_UNKNOWN; | ||
49 | + return VA_STATUS_ERROR_UNIMPLEMENTED; | ||
50 | } | ||
51 | |||
52 | /* | ||
53 | @@ -1156,7 +1159,7 @@ i965_SetDisplayAttributes(VADriverContextP ctx, | ||
54 | int num_attributes) | ||
55 | { | ||
56 | /* TODO */ | ||
57 | - return VA_STATUS_ERROR_UNKNOWN; | ||
58 | + return VA_STATUS_ERROR_UNIMPLEMENTED; | ||
59 | } | ||
60 | |||
61 | VAStatus | ||
62 | @@ -1166,7 +1169,7 @@ i965_DbgCopySurfaceToBuffer(VADriverContextP ctx, | ||
63 | unsigned int *stride) /* out */ | ||
64 | { | ||
65 | /* TODO */ | ||
66 | - return VA_STATUS_ERROR_UNKNOWN; | ||
67 | + return VA_STATUS_ERROR_UNIMPLEMENTED; | ||
68 | } | ||
69 | |||
70 | static VAStatus | ||
71 | @@ -1318,7 +1321,8 @@ VAStatus i965_DeriveImage(VADriverContextP ctx, | ||
72 | VASurfaceID surface, | ||
73 | VAImage *image) /* out */ | ||
74 | { | ||
75 | - return VA_STATUS_SUCCESS; | ||
76 | + /* TODO */ | ||
77 | + return VA_STATUS_ERROR_OPERATION_FAILED; | ||
78 | } | ||
79 | |||
80 | static void | ||
81 | -- | ||
82 | 1.5.4.3 | ||
83 | |||