[DDI] Allow exporting 8-bit single-channel (Y8/400P) surfaces#2013
Open
XinfengZhang wants to merge 1 commit into
Open
[DDI] Allow exporting 8-bit single-channel (Y8/400P) surfaces#2013XinfengZhang wants to merge 1 commit into
XinfengZhang wants to merge 1 commit into
Conversation
DdiMedia_ExportSurfaceHandle could not export 8-bit grayscale surfaces
because the DRM-format helpers only mapped VA_FOURCC_Y800. Add
VA_FOURCC_Y8 and VA_FOURCC('4','0','0','P') as fallthroughs to the Y800
case (all 8-bit single channel, DRM_FORMAT_R8) in both
DdiMedia_GetDrmFormatOfSeparatePlane and DdiMedia_GetDrmFormatOfCompositeObject.
Fixes: intel#1436
Signed-off-by: Carl.Zhang <carl.zhang@intel.com>
MicroYY
approved these changes
Jul 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
DdiMedia_ExportSurfaceHandlecould not export 8-bit single-channel(grayscale) surfaces because the DRM-format helpers only mapped
VA_FOURCC_Y800. This addsVA_FOURCC_Y8andVA_FOURCC('4','0','0','P')as fallthroughs to the existing
Y800case (all are 8-bit single channel →DRM_FORMAT_R8) in bothDdiMedia_GetDrmFormatOfSeparatePlaneandDdiMedia_GetDrmFormatOfCompositeObject.DdiMedia_MediaFormatToOsFormat/DdiMedia_OsFormatToMediaFormatalreadyhandle both fourccs, so only these two helpers needed updating.
Issue
Fixes #1436