mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-24 03:18:25 +02:00
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:
parent
75736b27cf
commit
666d2404ee
2 changed files with 0 additions and 2 deletions
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue