mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-16 08:40:29 +01:00
auxiliary: fix u_split_prim naming convention
Current practice is to start identifiers with "util_" instead of "u_".
This commit is contained in:
parent
0dcf0f9dfa
commit
eee5cea385
3 changed files with 9 additions and 9 deletions
|
|
@ -1,7 +1,7 @@
|
|||
/* Originally written by Ben Skeggs for the nv50 driver*/
|
||||
#include <pipe/p_defines.h>
|
||||
|
||||
struct u_split_prim {
|
||||
struct util_split_prim {
|
||||
void *priv;
|
||||
void (*emit)(void *priv, unsigned start, unsigned count);
|
||||
void (*edge)(void *priv, boolean enabled);
|
||||
|
|
@ -17,7 +17,7 @@ struct u_split_prim {
|
|||
};
|
||||
|
||||
static INLINE void
|
||||
u_split_prim_init(struct u_split_prim *s,
|
||||
util_split_prim_init(struct util_split_prim *s,
|
||||
unsigned mode, unsigned start, unsigned count)
|
||||
{
|
||||
if (mode == PIPE_PRIM_LINE_LOOP) {
|
||||
|
|
@ -35,7 +35,7 @@ u_split_prim_init(struct u_split_prim *s,
|
|||
}
|
||||
|
||||
static INLINE boolean
|
||||
u_split_prim_next(struct u_split_prim *s, unsigned max_verts)
|
||||
util_split_prim_next(struct util_split_prim *s, unsigned max_verts)
|
||||
{
|
||||
int repeat = 0;
|
||||
|
||||
|
|
|
|||
|
|
@ -217,7 +217,7 @@ nv50_push_elements_instanced(struct pipe_context *pipe,
|
|||
4; /* potential edgeflag enable/disable */
|
||||
const unsigned v_overhead = 1 + /* VERTEX_DATA packet header */
|
||||
2; /* potential edgeflag modification */
|
||||
struct u_split_prim s;
|
||||
struct util_split_prim s;
|
||||
unsigned vtx_size;
|
||||
boolean nzi = FALSE;
|
||||
int i;
|
||||
|
|
@ -335,7 +335,7 @@ nv50_push_elements_instanced(struct pipe_context *pipe,
|
|||
ctx.attr[i].map = (uint8_t *)ctx.attr[i].map + ctx.attr[i].stride;
|
||||
}
|
||||
|
||||
u_split_prim_init(&s, mode, start, count);
|
||||
util_split_prim_init(&s, mode, start, count);
|
||||
do {
|
||||
if (AVAIL_RING(chan) < p_overhead + (6 * vtx_size)) {
|
||||
FIRE_RING(chan);
|
||||
|
|
@ -351,7 +351,7 @@ nv50_push_elements_instanced(struct pipe_context *pipe,
|
|||
|
||||
BEGIN_RING(chan, tesla, NV50TCL_VERTEX_BEGIN, 1);
|
||||
OUT_RING (chan, nv50_prim(s.mode) | (nzi ? (1 << 28) : 0));
|
||||
done = u_split_prim_next(&s, max_verts);
|
||||
done = util_split_prim_next(&s, max_verts);
|
||||
BEGIN_RING(chan, tesla, NV50TCL_VERTEX_END, 1);
|
||||
OUT_RING (chan, 0);
|
||||
} while (!done);
|
||||
|
|
|
|||
|
|
@ -311,7 +311,7 @@ nv50_draw_elements_inline(struct pipe_context *pipe,
|
|||
struct pipe_transfer *transfer;
|
||||
struct instance a[16];
|
||||
struct inline_ctx ctx;
|
||||
struct u_split_prim s;
|
||||
struct util_split_prim s;
|
||||
boolean nzi = FALSE;
|
||||
unsigned overhead;
|
||||
|
||||
|
|
@ -347,7 +347,7 @@ nv50_draw_elements_inline(struct pipe_context *pipe,
|
|||
unsigned max_verts;
|
||||
boolean done;
|
||||
|
||||
u_split_prim_init(&s, mode, start, count);
|
||||
util_split_prim_init(&s, mode, start, count);
|
||||
do {
|
||||
if (AVAIL_RING(chan) < (overhead + 6)) {
|
||||
FIRE_RING(chan);
|
||||
|
|
@ -366,7 +366,7 @@ nv50_draw_elements_inline(struct pipe_context *pipe,
|
|||
|
||||
BEGIN_RING(chan, tesla, NV50TCL_VERTEX_BEGIN, 1);
|
||||
OUT_RING (chan, nv50_prim(s.mode) | (nzi ? (1<<28) : 0));
|
||||
done = u_split_prim_next(&s, max_verts);
|
||||
done = util_split_prim_next(&s, max_verts);
|
||||
BEGIN_RING(chan, tesla, NV50TCL_VERTEX_END, 1);
|
||||
OUT_RING (chan, 0);
|
||||
} while (!done);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue