auxiliary/indices: convert primitive type PIPE_PRIM_PATCHES

Few tessellation related piglit test are crashing. This patch
fixes unhandled case

Tested with piglit

Reviewed-by: Charmaine Lee <charmainel@vmware.com>
(cherry picked from commit 0e1c962cc105a9330caf22266e1962b049c13454)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12882>
This commit is contained in:
Neha Bhende
2021-09-14 17:43:16 -07:00
committed by Marge Bot
parent 86399c1b1f
commit f2b08decf7

View File

@@ -85,6 +85,8 @@ u_index_prim_type_convert(unsigned hw_mask, enum pipe_prim_type prim, bool pv_ma
case PIPE_PRIM_TRIANGLES_ADJACENCY:
case PIPE_PRIM_TRIANGLE_STRIP_ADJACENCY:
return PIPE_PRIM_TRIANGLES_ADJACENCY;
case PIPE_PRIM_PATCHES:
return PIPE_PRIM_PATCHES;
default:
assert(0);
break;
@@ -173,6 +175,7 @@ u_index_count_converted_indices(unsigned hw_mask, bool pv_matches, enum pipe_pri
switch (prim) {
case PIPE_PRIM_POINTS:
case PIPE_PRIM_PATCHES:
return nr;
case PIPE_PRIM_LINES:
return nr;