Commit 4119b70e authored by Gwenole Beauchesne's avatar Gwenole Beauchesne Committed by Xiang, Haihao

Don't return VA_STATUS_SUCCESS for unimplemented functions.

parent 141a6f72
...@@ -517,7 +517,8 @@ i965_SetSubpictureImage(VADriverContextP ctx, ...@@ -517,7 +517,8 @@ i965_SetSubpictureImage(VADriverContextP ctx,
VASubpictureID subpicture, VASubpictureID subpicture,
VAImageID image) VAImageID image)
{ {
return VA_STATUS_SUCCESS; /* TODO */
return VA_STATUS_ERROR_UNIMPLEMENTED;
} }
VAStatus VAStatus
...@@ -527,7 +528,8 @@ i965_SetSubpictureChromakey(VADriverContextP ctx, ...@@ -527,7 +528,8 @@ i965_SetSubpictureChromakey(VADriverContextP ctx,
unsigned int chromakey_max, unsigned int chromakey_max,
unsigned int chromakey_mask) unsigned int chromakey_mask)
{ {
return VA_STATUS_SUCCESS; /* TODO */
return VA_STATUS_ERROR_UNIMPLEMENTED;
} }
VAStatus VAStatus
...@@ -535,7 +537,8 @@ i965_SetSubpictureGlobalAlpha(VADriverContextP ctx, ...@@ -535,7 +537,8 @@ i965_SetSubpictureGlobalAlpha(VADriverContextP ctx,
VASubpictureID subpicture, VASubpictureID subpicture,
float global_alpha) float global_alpha)
{ {
return VA_STATUS_SUCCESS; /* TODO */
return VA_STATUS_ERROR_UNIMPLEMENTED;
} }
VAStatus VAStatus
...@@ -1184,7 +1187,7 @@ i965_GetDisplayAttributes(VADriverContextP ctx, ...@@ -1184,7 +1187,7 @@ i965_GetDisplayAttributes(VADriverContextP ctx,
int num_attributes) int num_attributes)
{ {
/* TODO */ /* TODO */
return VA_STATUS_ERROR_UNKNOWN; return VA_STATUS_ERROR_UNIMPLEMENTED;
} }
/* /*
...@@ -1199,7 +1202,7 @@ i965_SetDisplayAttributes(VADriverContextP ctx, ...@@ -1199,7 +1202,7 @@ i965_SetDisplayAttributes(VADriverContextP ctx,
int num_attributes) int num_attributes)
{ {
/* TODO */ /* TODO */
return VA_STATUS_ERROR_UNKNOWN; return VA_STATUS_ERROR_UNIMPLEMENTED;
} }
VAStatus VAStatus
...@@ -1209,7 +1212,7 @@ i965_DbgCopySurfaceToBuffer(VADriverContextP ctx, ...@@ -1209,7 +1212,7 @@ i965_DbgCopySurfaceToBuffer(VADriverContextP ctx,
unsigned int *stride) /* out */ unsigned int *stride) /* out */
{ {
/* TODO */ /* TODO */
return VA_STATUS_ERROR_UNKNOWN; return VA_STATUS_ERROR_UNIMPLEMENTED;
} }
static VAStatus static VAStatus
...@@ -1351,7 +1354,8 @@ VAStatus i965_DeriveImage(VADriverContextP ctx, ...@@ -1351,7 +1354,8 @@ VAStatus i965_DeriveImage(VADriverContextP ctx,
VASurfaceID surface, VASurfaceID surface,
VAImage *image) /* out */ VAImage *image) /* out */
{ {
return VA_STATUS_SUCCESS; /* TODO */
return VA_STATUS_ERROR_OPERATION_FAILED;
} }
static void static void
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment