freedreno: Fixes warning [-Wimplicit-fallthrough] in fd2_texture.c

Warning message:
../src/gallium/drivers/freedreno/a2xx/fd2_texture.c:150:4: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18204>
This commit is contained in:
Yonggang Luo 2022-08-23 13:12:04 +08:00 committed by Marge Bot
parent ac65f57438
commit 76a10cae12

View file

@ -146,7 +146,7 @@ tex_dimension(unsigned target)
{
switch (target) {
default:
assert(0);
unreachable("Unsupported target");
case PIPE_TEXTURE_1D:
assert(0); /* TODO */
return SQ_TEX_DIMENSION_1D;