mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-07 19:30:12 +01:00
st/mesa: optimize st_update_array with ALWAYSINLINE
The time spent in st_update_array is reduced by 5-10%. Reviewed-by: Mathias Fröhlich <mathias.froehlich@web.de> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3766> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3766>
This commit is contained in:
parent
36cc6b105b
commit
11db8e0e00
1 changed files with 8 additions and 2 deletions
|
|
@ -364,7 +364,10 @@ static void init_velement_lowered(const struct st_vertex_program *vp,
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
/* ALWAYS_INLINE helps the compiler realize that most of the parameters are
|
||||
* on the stack.
|
||||
*/
|
||||
void ALWAYS_INLINE
|
||||
st_setup_arrays(struct st_context *st,
|
||||
const struct st_vertex_program *vp,
|
||||
const struct st_common_variant *vp_variant,
|
||||
|
|
@ -427,7 +430,10 @@ st_setup_arrays(struct st_context *st,
|
|||
*has_user_vertex_buffers = uses_user_vertex_buffers;
|
||||
}
|
||||
|
||||
void
|
||||
/* ALWAYS_INLINE helps the compiler realize that most of the parameters are
|
||||
* on the stack.
|
||||
*/
|
||||
void ALWAYS_INLINE
|
||||
st_setup_current(struct st_context *st,
|
||||
const struct st_vertex_program *vp,
|
||||
const struct st_common_variant *vp_variant,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue