Skip to content

Conversation

@pengxin99
Copy link
Contributor

Use VA_STATUS_ERROR_RESET to indeicate media reset/engine reset have happended in the driver, user can use vaQuerySurfaceError() to get the detail info to do some customized work.

@pengxin99 pengxin99 force-pushed the pengxin/add_error_code_reset branch from 347520e to e04fe6d Compare June 5, 2023 08:21
@pengxin99
Copy link
Contributor Author

Hi, @XinfengZhang @Jexu, could you pls help to review this PR?

@pengxin99 pengxin99 requested a review from XinfengZhang June 8, 2023 10:46
@pengxin99 pengxin99 force-pushed the pengxin/add_error_code_reset branch 2 times, most recently from d7d0421 to f18f2d5 Compare June 13, 2023 09:04
@pengxin99 pengxin99 requested review from Jexu and XinfengZhang June 13, 2023 09:32
* After the applications get VA_STATUS_HW_BUSY or VA_STATUS_SUCCESSFULL from vaSyncSurface(),
* it still can call vaQuerySurfaceError to find out further details to know if has real hw reset
* happened on this surface since umd and kmd could recover the context from reset with success in sometimes.
* VA_STATUS_HW_BUSY or VA_STATUS_SUCCESSFULL also could be passed in as "error_status".
Copy link
Contributor

Choose a reason for hiding this comment

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

if there are one reset, and after re-run a while, there are another reset. how to know it?
each frame I need call it, first frame it is VADecodeReset, next frames it is invalid, then VADecodeReset again

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 user wants to know all the reset frames, then user needs to call vaQuerySurfaceError() for every frame and recode the reset information.
If user don't care about the reset, he can just call vaQuerySurfaceError() when get error from syncSurface().

@pengxin99 pengxin99 requested a review from XinfengZhang June 29, 2023 07:37
Copy link
Contributor

@XinfengZhang XinfengZhang left a comment

Choose a reason for hiding this comment

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

LGTM, even "success" is treated as "error code" , it looks a little tricky.

Use VADecodeReset to indeicate media reset/engine reset have happended in the driver,
user can use vaQuerySurfaceError() to get the detail info to do some customized work.

Signed-off-by: Pengxin, Yuan <pengxin.yuan@intel.com>
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.

3 participants