mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
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>
This commit is contained in:
parent
a2eba3362f
commit
fcb39f5b6a
1 changed files with 2 additions and 2 deletions
|
|
@ -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]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue