radv: make radv_conv_gl_prim_to_gs_out() a non-static function

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28983>
This commit is contained in:
Samuel Pitoiset
2024-05-08 14:38:10 +02:00
committed by Marge Bot
parent d516721cd0
commit fca40bcce3
2 changed files with 22 additions and 22 deletions
-22
View File
@@ -299,28 +299,6 @@ radv_conv_tess_prim_to_gs_out(enum tess_primitive_mode prim)
}
}
static uint32_t
radv_conv_gl_prim_to_gs_out(unsigned gl_prim)
{
switch (gl_prim) {
case MESA_PRIM_POINTS:
return V_028A6C_POINTLIST;
case MESA_PRIM_LINES:
case MESA_PRIM_LINE_STRIP:
case MESA_PRIM_LINES_ADJACENCY:
return V_028A6C_LINESTRIP;
case MESA_PRIM_TRIANGLES:
case MESA_PRIM_TRIANGLE_STRIP_ADJACENCY:
case MESA_PRIM_TRIANGLE_STRIP:
case MESA_PRIM_QUADS:
return V_028A6C_TRISTRIP;
default:
assert(0);
return 0;
}
}
static uint64_t
radv_dynamic_state_mask(VkDynamicState state)
{
+22
View File
@@ -194,6 +194,28 @@ radv_conv_prim_to_gs_out(uint32_t topology, bool is_ngg)
}
}
static inline uint32_t
radv_conv_gl_prim_to_gs_out(unsigned gl_prim)
{
switch (gl_prim) {
case MESA_PRIM_POINTS:
return V_028A6C_POINTLIST;
case MESA_PRIM_LINES:
case MESA_PRIM_LINE_STRIP:
case MESA_PRIM_LINES_ADJACENCY:
return V_028A6C_LINESTRIP;
case MESA_PRIM_TRIANGLES:
case MESA_PRIM_TRIANGLE_STRIP_ADJACENCY:
case MESA_PRIM_TRIANGLE_STRIP:
case MESA_PRIM_QUADS:
return V_028A6C_TRISTRIP;
default:
assert(0);
return 0;
}
}
static inline uint32_t
radv_translate_prim(unsigned topology)
{