i965: Make brw_varying_to_offset take a const pointer to the VUE map.
authorKenneth Graunke <kenneth@whitecape.org>
Sun, 26 Jul 2015 04:29:28 +0000 (21:29 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sun, 25 Oct 2015 03:30:14 +0000 (20:30 -0700)
It doesn't modify it.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_compiler.h

index 68a93a690ddae7fc3b4e28d4ea4dba9633f284ea..bb2fbd4a7b26017444cb20eff81b5352d82a190f 100644 (file)
@@ -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]);
 }