vdpau: Fixes warning [-Wimplicit-fallthrough] in vdpau_private.h

Warning message:
../src/gallium/frontends/vdpau/vdpau_private.h:149:7: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-By: Sil Vilerino sivileri@microsoft.com
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18204>
This commit is contained in:
Yonggang Luo
2022-08-23 12:39:28 +08:00
committed by Marge Bot
parent 1bfa7f729c
commit 8d04a3d024

View File

@@ -145,16 +145,19 @@ FormatYCBCRToPipe(VdpYCbCrFormat vdpau_format)
default:
/* NOTE: Can't be "unreachable", as it's quite reachable. */
assert(!"unexpected VdpYCbCrFormat");
return PIPE_FORMAT_NONE;
#ifdef VDP_YCBCR_FORMAT_Y_UV_444
case VDP_YCBCR_FORMAT_Y_UV_444:
return PIPE_FORMAT_NONE;
#endif
#ifdef VDP_YCBCR_FORMAT_Y_U_V_444
case VDP_YCBCR_FORMAT_Y_U_V_444:
return PIPE_FORMAT_NONE;
#endif
#ifdef VDP_YCBCR_FORMAT_Y_U_V_444_16
case VDP_YCBCR_FORMAT_Y_U_V_444_16:
#endif
return PIPE_FORMAT_NONE;
#endif
}
}