mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
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:
parent
1bfa7f729c
commit
8d04a3d024
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue