Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SMR0] Fixed the issue that sw codec fails to validate 10-bit type buffer #76

Conversation

zhangyichix
Copy link
Contributor

The function validateBufferSize fails when sw codec allocates buffer with HAL_PIXEL_FORMAT_YCBCR_P010. The reason is that the pixel format will be converted to drm format for allocating buffer, then the format of the handle is assigned to HAL_PIXEL_ format type with i915_private_invert_format, but the descriptor.format is still the pixel format, they must be different when checked in validateBufferSize. So we check the format type after uniformly converting the pixel/HAL format to drm format.

Tracked-On: OAM-112372

@zhangyichix
Copy link
Contributor Author

#67
porting to smr0.
@feijiang1 @chenyanxzhu

@zhangyichix zhangyichix changed the title [SMR0]Fixed the issue that sw codec fails to validate 10-bit type buffer [SMR0] Fixed the issue that sw codec fails to validate 10-bit type buffer Sep 25, 2023
…ffer

The function validateBufferSize fails when sw codec allocates buffer
with HAL_PIXEL_FORMAT_YCBCR_P010. The reason is that the pixel format
will be converted to drm format for allocating buffer, then
the format of the handle is assigned to HAL_PIXEL_ format type with
i915_private_invert_format, but the descriptor.format is still
the pixel format, they must be different when checked in
validateBufferSize. So we check the format type after uniformly
converting the pixel/HAL format to drm format.

Tracked-On: OAM-112372
Signed-off-by: zhangyichix <[email protected]>
Copy link

@sysopenci sysopenci left a comment

Choose a reason for hiding this comment

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

Failure when executing preintegration builder

FAILURE:CheckBug Bad comments/Bugs

More details, logs, and binaries: /absp/builders/celadon_smr0_master-preintegration/builds/685

Copy link

@sysopenci sysopenci left a comment

Choose a reason for hiding this comment

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

PR integrated into 'preintegration' builder

More details, logs, and binaries: /absp/builders/celadon_smr0_master-preintegration/builds/686

Done by "Jiang, Fei" [email protected]

Copy link

@sysopenci sysopenci left a comment

Choose a reason for hiding this comment

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

PR integrated into 'premerge' builder

More details, logs, and binaries: /absp/builders/celadon_smr0_master-premerge/builds/407

Done by "Jiang, Fei" [email protected]

@sysopenci sysopenci merged commit 78f4646 into projectceladon:celadon/s/mr0/master Sep 28, 2023
10 checks passed
Copy link

@sysopenci sysopenci left a comment

Choose a reason for hiding this comment

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

cactus finished building and testing your changes

It was requested for merge by "Jiang, Fei" [email protected]

so we merge it. Thanks for your contribution.

more details, logs, and binaries: /absp/builders/celadon_smr0_master-mergerequest/builds/402

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