aux/util: use enum for primitive-type

Reviewed-by: Yonggang Luo <luoyonggang@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24002>
This commit is contained in:
Erik Faye-Lund 2023-06-23 16:50:49 +02:00 committed by Marge Bot
parent 70e153e8d0
commit ae0df2a52f
2 changed files with 7 additions and 5 deletions

View file

@ -44,7 +44,7 @@ util_draw_vertex_buffer(struct pipe_context *pipe,
struct pipe_resource *vbuf,
uint vbuf_slot,
uint offset,
uint prim_type,
enum mesa_prim prim_type,
uint num_verts,
uint num_attribs)
{
@ -76,7 +76,8 @@ util_draw_vertex_buffer(struct pipe_context *pipe,
*/
void
util_draw_user_vertex_buffer(struct cso_context *cso, void *buffer,
uint prim_type, uint num_verts, uint num_attribs)
enum mesa_prim prim_type, uint num_verts,
uint num_attribs)
{
struct pipe_vertex_buffer vbuffer = {0};

View file

@ -44,12 +44,13 @@ struct cso_context;
extern void
util_draw_vertex_buffer(struct pipe_context *pipe, struct cso_context *cso,
struct pipe_resource *vbuf, uint vbuf_slot,
uint offset, uint prim_type, uint num_attribs,
uint num_verts);
uint offset, enum mesa_prim prim_type,
uint num_attribs, uint num_verts);
void
util_draw_user_vertex_buffer(struct cso_context *cso, void *buffer,
uint prim_type, uint num_verts, uint num_attribs);
enum mesa_prim prim_type, uint num_verts,
uint num_attribs);
#ifdef __cplusplus
}