panvk: remove redundant invalid primitive topology cases

We already have a default case, there is no need to specify each invalid
primitive topology explicitly.

Signed-off-by: Olivia Lee <olivia.lee@collabora.com>
Reviewed-by: Eric R. Smith <eric.smith@collabora.com>
Reviewed-by: Christian Gmeiner <cgmeiner@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41654>
This commit is contained in:
Olivia Lee 2026-06-17 11:06:30 -07:00 committed by Marge Bot
parent 75736b27cf
commit 666d2404ee
2 changed files with 0 additions and 2 deletions

View file

@ -586,7 +586,6 @@ translate_prim_topology(VkPrimitiveTopology in)
return MALI_DRAW_MODE_TRIANGLES_ADJACENCY;
case VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP_WITH_ADJACENCY:
return MALI_DRAW_MODE_TRIANGLE_STRIP_ADJACENCY;
case VK_PRIMITIVE_TOPOLOGY_PATCH_LIST:
default:
UNREACHABLE("Invalid primitive type");
}

View file

@ -886,7 +886,6 @@ translate_prim_topology(VkPrimitiveTopology in)
case VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP_WITH_ADJACENCY:
return MALI_DRAW_MODE_TRIANGLE_STRIP_ADJACENCY;
#endif
case VK_PRIMITIVE_TOPOLOGY_PATCH_LIST:
default:
UNREACHABLE("Invalid primitive type");
}