Skip to content

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

Merged
intel-mediadev merged 1 commit into
intel:masterfrom
XinfengZhang:fix/issue-1724
Jul 14, 2026
Merged

[DDI] Fix debug assert to check source surface bo in MediaSurfaceToMosResource#2012
intel-mediadev merged 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
@intel-mediadev intel-mediadev merged commit f395911 into intel:master Jul 14, 2026
13 checks passed
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

3 participants