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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user