summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_compiler.h
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2015-07-25 21:29:28 -0700
committerKenneth Graunke <kenneth@whitecape.org>2015-10-24 20:30:14 -0700
commitfcb39f5b6a0c7cc92b4260b44a3f327ec84ef47a (patch)
tree2e82d2680ee16ac75ae8e68f04715752b9fecb77 /src/mesa/drivers/dri/i965/brw_compiler.h
parenta2eba3362f1c120e5e70b56568d44470cb75fdc8 (diff)
downloadexternal_mesa3d-fcb39f5b6a0c7cc92b4260b44a3f327ec84ef47a.zip
external_mesa3d-fcb39f5b6a0c7cc92b4260b44a3f327ec84ef47a.tar.gz
external_mesa3d-fcb39f5b6a0c7cc92b4260b44a3f327ec84ef47a.tar.bz2
i965: Make brw_varying_to_offset take a const pointer to the VUE map.
It doesn't modify it. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_compiler.h')
-rw-r--r--src/mesa/drivers/dri/i965/brw_compiler.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_compiler.h b/src/mesa/drivers/dri/i965/brw_compiler.h
index 68a93a6..bb2fbd4 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]);
}