v3dv: Fixes warning [-Wimplicit-fallthrough] in v3dvx_pipeline.c

Warning message:
../src/broadcom/vulkan/v3dvx_pipeline.c:60:4: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18204>
This commit is contained in:
Yonggang Luo 2022-08-23 12:47:51 +08:00 committed by Marge Bot
parent 8d04a3d024
commit c066c04598

View file

@ -56,9 +56,9 @@ blend_factor(VkBlendFactor factor, bool dst_alpha_one, bool *needs_constants)
case VK_BLEND_FACTOR_ONE_MINUS_SRC1_COLOR:
case VK_BLEND_FACTOR_SRC1_ALPHA:
case VK_BLEND_FACTOR_ONE_MINUS_SRC1_ALPHA:
assert(!"Invalid blend factor: dual source blending not supported.");
unreachable("Invalid blend factor: dual source blending not supported.");
default:
assert(!"Unknown blend factor.");
unreachable("Unknown blend factor.");
}
/* Should be handled by the switch, added to avoid a "end of non-void