Module: Mesa Branch: main Commit: fcef3f040befff0871dd8d0d331cd8c50c150d62 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=fcef3f040befff0871dd8d0d331cd8c50c150d62
Author: Yonggang Luo <[email protected]> Date: Thu Jun 1 21:54:52 2023 +0800 microsoft/compiler: Getting function impl to be consistence with decl in dxil_enums.* This is a prepare step for add PACKED attribute on shader_prim Signed-off-by: Yonggang Luo <[email protected]> Acked-by: Marek Olšák <[email protected]> Acked-by: Jesse Natalie <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23369> --- src/microsoft/compiler/dxil_enums.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/microsoft/compiler/dxil_enums.c b/src/microsoft/compiler/dxil_enums.c index 66a2884f2aa..028a8488689 100644 --- a/src/microsoft/compiler/dxil_enums.c +++ b/src/microsoft/compiler/dxil_enums.c @@ -122,7 +122,7 @@ enum dxil_resource_kind dxil_get_resource_kind(const struct glsl_type *type) unreachable("unexpected glsl type"); } -enum dxil_input_primitive dxil_get_input_primitive(enum shader_prim primitive) +enum dxil_input_primitive dxil_get_input_primitive(unsigned primitive) { switch (primitive) { case SHADER_PRIM_POINTS: @@ -140,7 +140,7 @@ enum dxil_input_primitive dxil_get_input_primitive(enum shader_prim primitive) } } -enum dxil_primitive_topology dxil_get_primitive_topology(enum shader_prim topology) +enum dxil_primitive_topology dxil_get_primitive_topology(unsigned topology) { switch (topology) { case SHADER_PRIM_POINTS:
