compiler: Getting shader_prim to be PACKED that consistence with pipe_prim_type
authorYonggang Luo <luoyonggang@gmail.com>
Thu, 1 Jun 2023 13:44:15 +0000 (21:44 +0800)
committerMarge Bot <emma+marge@anholt.net>
Sat, 3 Jun 2023 03:29:03 +0000 (03:29 +0000)
This is a prepare step for replace all usage of pipe_prim_type and shader_prim with mesa_prim

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>

src/compiler/shader_enums.h

index 17dd94b..d282074 100644 (file)
@@ -1151,7 +1151,7 @@ enum tess_primitive_mode
 };
 
 /* these also map directly to GL and gallium prim types. */
-enum shader_prim
+enum PACKED shader_prim
 {
    SHADER_PRIM_POINTS,
    SHADER_PRIM_LINES,