diff options
author | Yonggang Luo <luoyonggang@gmail.com> | 2023-06-01 23:03:34 +0800 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2023-06-03 03:29:03 +0000 |
commit | 12256136e0c9652d84270469409dce78b86812fc (patch) | |
tree | 1cdf5827f16169ba4a604e00742cacdc0cf794b0 /src/gallium/auxiliary/util/u_blitter.c | |
parent | 5393156da4d4d497f4538c2933ee733c27940d6f (diff) |
compiler: Rename shader_prim to mesa_prim and replace all usage of pipe_prim_type with mesa_prim
This is a prepare step to remove depends on p_defines.h in src/util/*
This is done by:
replace pipe_prim_type with mesa_prim
replace shader_prim with mesa_prim
replace PIPE_PRIM_MAX with MESA_PRIM_COUNT
replace SHADER_PRIM_ with MESA_PRIM_
replace PIPE_PRIM_ with MESA_PRIM_
This patch only replace code only
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Acked-by: Marek Olšák <marek.olsak@amd.com>
Acked-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23369>
Diffstat (limited to 'src/gallium/auxiliary/util/u_blitter.c')
-rw-r--r-- | src/gallium/auxiliary/util/u_blitter.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/auxiliary/util/u_blitter.c b/src/gallium/auxiliary/util/u_blitter.c index a67c910d00a..458834f0e1e 100644 --- a/src/gallium/auxiliary/util/u_blitter.c +++ b/src/gallium/auxiliary/util/u_blitter.c @@ -1421,10 +1421,10 @@ static void blitter_draw(struct blitter_context_priv *ctx, */ static uint8_t indices[6] = { 0, 1, 2, 0, 3, 2 }; util_draw_elements_instanced(pipe, indices, 1, 0, - PIPE_PRIM_TRIANGLES, 0, 6, + MESA_PRIM_TRIANGLES, 0, 6, 0, num_instances); } else { - util_draw_arrays_instanced(pipe, PIPE_PRIM_TRIANGLE_FAN, 0, 4, + util_draw_arrays_instanced(pipe, MESA_PRIM_TRIANGLE_FAN, 0, 4, 0, num_instances); } pipe_resource_reference(&vb.buffer.resource, NULL); @@ -2648,7 +2648,7 @@ void util_blitter_clear_buffer(struct blitter_context *blitter, so_target = pipe->create_stream_output_target(pipe, dst, offset, size); pipe->set_stream_output_targets(pipe, 1, &so_target, offsets); - util_draw_arrays(pipe, PIPE_PRIM_POINTS, 0, size / 4); + util_draw_arrays(pipe, MESA_PRIM_POINTS, 0, size / 4); out: util_blitter_restore_vertex_states(blitter); |