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_screen.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_screen.c')
-rw-r--r-- | src/gallium/auxiliary/util/u_screen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/util/u_screen.c b/src/gallium/auxiliary/util/u_screen.c index 348aaa8c9d0..407ddd7b3c5 100644 --- a/src/gallium/auxiliary/util/u_screen.c +++ b/src/gallium/auxiliary/util/u_screen.c @@ -105,7 +105,7 @@ u_pipe_screen_get_param_defaults(struct pipe_screen *pscreen, case PIPE_CAP_SUPPORTED_PRIM_MODES_WITH_RESTART: case PIPE_CAP_SUPPORTED_PRIM_MODES: - return BITFIELD_MASK(PIPE_PRIM_MAX); + return BITFIELD_MASK(MESA_PRIM_COUNT); case PIPE_CAP_MIN_TEXEL_OFFSET: /* GL 3.x minimum value. */ |