From 51e7b058750cc480c296d45f773d7a5a662457f5 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 6 Sep 2011 15:29:24 -0600 Subject: [PATCH] mesa: put _mesa_ prefix on vert_result_to_frag_attrib() --- src/mesa/drivers/dri/i965/brw_fs.cpp | 4 ++-- src/mesa/drivers/dri/i965/brw_vs_constval.c | 2 +- src/mesa/drivers/dri/i965/brw_wm_pass2.c | 2 +- src/mesa/drivers/dri/i965/gen6_sf_state.c | 2 +- src/mesa/main/mtypes.h | 8 ++++---- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index 93323739a25..1f3d9d868dd 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs.cpp @@ -672,7 +672,7 @@ fs_visitor::calculate_urb_setup() /* FINISHME: The sf doesn't map VS->FS inputs for us very well. */ for (unsigned int i = 0; i < VERT_RESULT_MAX; i++) { if (c->key.vp_outputs_written & BITFIELD64_BIT(i)) { - int fp_index = vert_result_to_frag_attrib(i); + int fp_index = _mesa_vert_result_to_frag_attrib(i); if (fp_index >= 0) urb_setup[fp_index] = urb_next++; @@ -1826,7 +1826,7 @@ brw_fs_precompile(struct gl_context *ctx, struct gl_shader_program *prog) key.proj_attrib_mask |= 1 << i; - int vp_index = vert_result_to_frag_attrib(i); + int vp_index = _mesa_vert_result_to_frag_attrib(i); if (vp_index >= 0) key.vp_outputs_written |= BITFIELD64_BIT(vp_index); diff --git a/src/mesa/drivers/dri/i965/brw_vs_constval.c b/src/mesa/drivers/dri/i965/brw_vs_constval.c index 4d9d4b714e8..67af23ec439 100644 --- a/src/mesa/drivers/dri/i965/brw_vs_constval.c +++ b/src/mesa/drivers/dri/i965/brw_vs_constval.c @@ -146,7 +146,7 @@ static void calc_sizes( struct tracker *t ) for (vertRes = VERT_RESULT_TEX0; vertRes < VERT_RESULT_MAX; vertRes++) { /* map vertex program output index to fragment program input index */ - GLint fragAttrib = vert_result_to_frag_attrib(vertRes); + GLint fragAttrib = _mesa_vert_result_to_frag_attrib(vertRes); if (fragAttrib < 0) continue; assert(fragAttrib >= FRAG_ATTRIB_TEX0); diff --git a/src/mesa/drivers/dri/i965/brw_wm_pass2.c b/src/mesa/drivers/dri/i965/brw_wm_pass2.c index f1d70f79a77..27c0a94fab8 100644 --- a/src/mesa/drivers/dri/i965/brw_wm_pass2.c +++ b/src/mesa/drivers/dri/i965/brw_wm_pass2.c @@ -94,7 +94,7 @@ static void init_registers( struct brw_wm_compile *c ) } else { for (j = 0; j < VERT_RESULT_MAX; j++) { if (c->key.vp_outputs_written & BITFIELD64_BIT(j)) { - int fp_index = vert_result_to_frag_attrib(j); + int fp_index = _mesa_vert_result_to_frag_attrib(j); nr_interp_regs++; if (fp_index >= 0) diff --git a/src/mesa/drivers/dri/i965/gen6_sf_state.c b/src/mesa/drivers/dri/i965/gen6_sf_state.c index ed49593b077..4a9c0943c65 100644 --- a/src/mesa/drivers/dri/i965/gen6_sf_state.c +++ b/src/mesa/drivers/dri/i965/gen6_sf_state.c @@ -56,7 +56,7 @@ get_attr_override(struct brw_vue_map *vue_map, int urb_entry_read_offset, int fs_attr, bool two_side_color) { int attr_override, slot; - int vs_attr = frag_attrib_to_vert_result(fs_attr); + int vs_attr = _mesa_frag_attrib_to_vert_result(fs_attr); if (vs_attr < 0 || vs_attr == VERT_RESULT_HPOS) { /* These attributes will be overwritten by the fragment shader's * interpolation code (see emit_interp() in brw_wm_fp.c), so just let diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index 4e5cc46a409..8b479f4b0a8 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -216,7 +216,7 @@ typedef enum /** * Indexes for vertex program result attributes. Note that - * vert_result_to_frag_attrib() and frag_attrib_to_vert_result() make + * _mesa_vert_result_to_frag_attrib() and _mesa_frag_attrib_to_vert_result() make * assumptions about the layout of this enum. */ typedef enum @@ -316,7 +316,7 @@ typedef enum /** * Indexes for fragment program input attributes. Note that - * vert_result_to_frag_attrib() and frag_attrib_to_vert_result() make + * _mesa_vert_result_to_frag_attrib() and frag_attrib_to_vert_result() make * assumptions about the layout of this enum. */ typedef enum @@ -348,7 +348,7 @@ typedef enum * (VERT_RESULT_PSIZ, VERT_RESULT_BFC0, VERT_RESULT_BFC1, and * VERT_RESULT_EDGE) are converted to a value of -1. */ -static INLINE int vert_result_to_frag_attrib(gl_vert_result vert_result) +static INLINE int _mesa_vert_result_to_frag_attrib(gl_vert_result vert_result) { if (vert_result >= VERT_RESULT_VAR0) return vert_result - VERT_RESULT_VAR0 + FRAG_ATTRIB_VAR0; @@ -366,7 +366,7 @@ static INLINE int vert_result_to_frag_attrib(gl_vert_result vert_result) * gl_frag_attrib values which have no corresponding gl_vert_result * (FRAG_ATTRIB_FACE and FRAG_ATTRIB_PNTC) are converted to a value of -1. */ -static INLINE int frag_attrib_to_vert_result(gl_frag_attrib frag_attrib) +static INLINE int _mesa_frag_attrib_to_vert_result(gl_frag_attrib frag_attrib) { if (frag_attrib <= FRAG_ATTRIB_TEX7) return frag_attrib; -- 2.11.0