Skip to content

Conversation

XinfengZhang
Copy link
Contributor

Fixes #361
some backend driver does not implement vaPutSurface

Signed-off-by: Carl Zhang carl.zhang@intel.com

CHECK_VTABLE(vaStatus, ctx, EndPicture);
CHECK_VTABLE(vaStatus, ctx, SyncSurface);
CHECK_VTABLE(vaStatus, ctx, QuerySurfaceStatus);
CHECK_VTABLE(vaStatus, ctx, PutSurface);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't they just return VA_STATUS_ERROR_UNIMPLEMENTED?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if there are no implmented, it will set vaStatus = VA_STATUS_ERROR_UNKNOWN and return at https://github.com/intel/libva/blob/master/va/va.c#L572

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right. What I meant is, imo, that the driver implementators should add a function that returns VA_STATUS_ERROR_UNIMPLEMENTED.

Meanwhile, returning VA_STATUS_ERROR_UNKNOWN might be misleading to the api user.

But anyway, I'm not opposing to this change. Just stating a point of view.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ceyusa I filed another PR #404 to return VA_STATUS_ERROR_UNIMPLEMENTED

Fixes intel#361
some backend driver does not implement vaPutSurface

Signed-off-by: Carl Zhang <carl.zhang@intel.com>
@XinfengZhang XinfengZhang merged commit 256bbab into intel:master May 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

X11 PutSurface dependency issue
3 participants