mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-21 02:10:17 +01:00
mesa/st: remove translate_mode
This no longer does anything useful, so let's just drop it. Reviewed-by: Yonggang Luo <luoyonggang@gmail.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19034>
This commit is contained in:
parent
a125f2d8c7
commit
95fe418def
1 changed files with 2 additions and 12 deletions
|
|
@ -73,16 +73,6 @@ static_assert(GL_QUADS == PIPE_PRIM_QUADS, "enum mismatch");
|
|||
static_assert(GL_TRIANGLE_STRIP_ADJACENCY == PIPE_PRIM_TRIANGLE_STRIP_ADJACENCY, "enum mismatch");
|
||||
static_assert(GL_PATCHES == PIPE_PRIM_PATCHES, "enum mismatch");
|
||||
|
||||
/**
|
||||
* Translate OpenGL primtive type (GL_POINTS, GL_TRIANGLE_STRIP, etc) to
|
||||
* the corresponding Gallium type.
|
||||
*/
|
||||
static unsigned
|
||||
translate_prim(const struct gl_context *ctx, unsigned prim)
|
||||
{
|
||||
return prim;
|
||||
}
|
||||
|
||||
static inline void
|
||||
prepare_draw(struct st_context *st, struct gl_context *ctx, uint64_t state_mask,
|
||||
enum st_pipeline pipeline)
|
||||
|
|
@ -282,7 +272,7 @@ st_indirect_draw_vbo(struct gl_context *ctx,
|
|||
info.primitive_restart = ctx->Array._PrimitiveRestart[index_size_shift];
|
||||
}
|
||||
|
||||
info.mode = translate_prim(ctx, mode);
|
||||
info.mode = mode;
|
||||
indirect.buffer = indirect_data->buffer;
|
||||
indirect.offset = indirect_offset;
|
||||
|
||||
|
|
@ -338,7 +328,7 @@ st_draw_transform_feedback(struct gl_context *ctx, GLenum mode,
|
|||
memset(&indirect, 0, sizeof(indirect));
|
||||
util_draw_init_info(&info);
|
||||
info.max_index = ~0u; /* so that u_vbuf can tell that it's unknown */
|
||||
info.mode = translate_prim(ctx, mode);
|
||||
info.mode = mode;
|
||||
info.instance_count = num_instances;
|
||||
|
||||
/* Transform feedback drawing is always non-indexed. */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue