Bug 109761 - misuse of enums in vdpau_private.h
Summary: misuse of enums in vdpau_private.h
Status: CLOSED NOTABUG
Alias: None
Product: Mesa
Classification: Unclassified
Component: Other (show other bugs)
Version: git
Hardware: All NetBSD
: medium normal
Assignee: mesa-dev
QA Contact: mesa-dev
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-24 14:02 UTC by coypu
Modified: 2019-02-25 16:02 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

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.