mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
st/mesa: set vertices_per_patch when drawing
This commit is contained in:
parent
37d1809dd7
commit
f4c13fad65
1 changed files with 2 additions and 0 deletions
|
|
@ -164,6 +164,7 @@ translate_prim(const struct gl_context *ctx, unsigned prim)
|
|||
STATIC_ASSERT(GL_POINTS == PIPE_PRIM_POINTS);
|
||||
STATIC_ASSERT(GL_QUADS == PIPE_PRIM_QUADS);
|
||||
STATIC_ASSERT(GL_TRIANGLE_STRIP_ADJACENCY == PIPE_PRIM_TRIANGLE_STRIP_ADJACENCY);
|
||||
STATIC_ASSERT(GL_PATCHES == PIPE_PRIM_PATCHES);
|
||||
|
||||
return prim;
|
||||
}
|
||||
|
|
@ -260,6 +261,7 @@ st_draw_vbo(struct gl_context *ctx,
|
|||
info.count = prims[i].count;
|
||||
info.start_instance = prims[i].base_instance;
|
||||
info.instance_count = prims[i].num_instances;
|
||||
info.vertices_per_patch = ctx->TessCtrlProgram.patch_vertices;
|
||||
info.index_bias = prims[i].basevertex;
|
||||
if (!ib) {
|
||||
info.min_index = info.start;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue