From: Kenneth Graunke Date: Sun, 26 Jul 2015 04:29:28 +0000 (-0700) Subject: i965: Make brw_varying_to_offset take a const pointer to the VUE map. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fcb39f5b6a0c7cc92b4260b44a3f327ec84ef47a;p=mesa.git i965: Make brw_varying_to_offset take a const pointer to the VUE map. It doesn't modify it. Signed-off-by: Kenneth Graunke Reviewed-by: Matt Turner --- diff --git a/src/mesa/drivers/dri/i965/brw_compiler.h b/src/mesa/drivers/dri/i965/brw_compiler.h index 68a93a690dd..bb2fbd4a7b2 100644 --- a/src/mesa/drivers/dri/i965/brw_compiler.h +++ b/src/mesa/drivers/dri/i965/brw_compiler.h @@ -465,8 +465,8 @@ static inline GLuint brw_vue_slot_to_offset(GLuint slot) * Convert a vertex output (brw_varying_slot) into a byte offset within the * VUE. */ -static inline GLuint brw_varying_to_offset(struct brw_vue_map *vue_map, - GLuint varying) +static inline +GLuint brw_varying_to_offset(const struct brw_vue_map *vue_map, GLuint varying) { return brw_vue_slot_to_offset(vue_map->varying_to_slot[varying]); }