Bug 109761

Summary: misuse of enums in vdpau_private.h
Product: Mesa Reporter: coypu
Component: OtherAssignee: mesa-dev
Status: CLOSED NOTABUG QA Contact: mesa-dev
Severity: normal    
Priority: medium    
Version: git   
Hardware: All   
OS: NetBSD   
Whiteboard:
i915 platform: i915 features:

Description coypu 2019-02-24 14:02:23 UTC
using a custom build system and clang 7, I get warnings about src/gallium/state_trackers/vdpau/vdpau_private.h.

functions like FormatYCBCRToPipeChroma return enum pipe_video_chroma_format.

PIPE_FORMAT_NONE, returned in the else case, isn't in this enum, it's enum pipe_format.

I can trivially replace for returning PIPE_VIDEO_CHROMA_FORMAT_NONE but that sounds like a risky change that might have harmful effects, so making a bug reports rather than a patch.
Comment 1 Christian König 2019-02-25 16:02:05 UTC
Please submit a patch for proposed changes. This report system is only for bugs.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.