From: Marek Olšák Date: Fri, 14 Feb 2020 21:53:42 +0000 (-0500) Subject: st/mesa: try to fix MSVC build failure due to ALWAYS_INLINE X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2491a2ddeb53f3d44b4633f967bfa5b023946bce;p=mesa.git st/mesa: try to fix MSVC build failure due to ALWAYS_INLINE Fixes: 11db8e0e00a72884ba9f ("st/mesa: optimize st_update_array with ALWAYSINLINE") Tested-by: Eric Engestrom Part-of: --- diff --git a/src/mesa/state_tracker/st_atom_array.c b/src/mesa/state_tracker/st_atom_array.c index de03abea66d..b4af4c3e629 100644 --- a/src/mesa/state_tracker/st_atom_array.c +++ b/src/mesa/state_tracker/st_atom_array.c @@ -125,7 +125,10 @@ init_velement(const struct st_vertex_program *vp, /* ALWAYS_INLINE helps the compiler realize that most of the parameters are * on the stack. */ -void ALWAYS_INLINE +void +#ifndef _MSC_VER /* MSVC doesn't like inlining public functions */ +ALWAYS_INLINE +#endif st_setup_arrays(struct st_context *st, const struct st_vertex_program *vp, const struct st_common_variant *vp_variant,