Skip to content

[DDI] Fix debug assert to check source surface bo in MediaSurfaceToMosResource#2012

Open
XinfengZhang wants to merge 1 commit into
intel:masterfrom
XinfengZhang:fix/issue-1724
Open

[DDI] Fix debug assert to check source surface bo in MediaSurfaceToMosResource#2012
XinfengZhang wants to merge 1 commit into
intel:masterfrom
XinfengZhang:fix/issue-1724

Conversation

@XinfengZhang

Copy link
Copy Markdown
Contributor

Summary

DdiMedia_MediaSurfaceToMosResource asserted on the destination
mosResource->bo, which is not yet populated at that point, instead of the
source mediaSurface->bo. With debug asserts enabled this fired on valid
usage. The assert now checks mediaSurface->bo, consistent with the sibling
DdiMedia_MediaBufferToMosResource which asserts mediaBuffer->bo.

Issue

Fixes #1724

…sResource

DdiMedia_MediaSurfaceToMosResource asserted on the destination
mosResource->bo, which is not yet populated at that point, instead of the
source mediaSurface->bo. This fired on valid usage in debug builds. Assert
on mediaSurface->bo, consistent with DdiMedia_MediaBufferToMosResource.

Fixes: intel#1724

Signed-off-by: Carl.Zhang <carl.zhang@intel.com>
@XinfengZhang XinfengZhang added verifying PR: fix ready and verifying with build/test Common memory, surface, ddi labels Jul 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Common memory, surface, ddi verifying PR: fix ready and verifying with build/test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Invalid debug check

2 participants