[Mesa-dev] [PATCH 6/7] i965: s/brw->gen/GEN/ so that it can be defined by the preprocessor.

Matt Turner mattst88 at gmail.com
Tue Jun 10 21:57:22 PDT 2014


From: Kenneth Graunke <kenneth at whitecape.org>

This conversion was done automatically via the following shell command:

    for file in i965/*.{c,h,cpp}; do
        [ ! -h $file ] && sed -i 's/brw->gen/GEN/g' $file;
    done

with some exceptions manually restored (brw_context.c, test_*).
---
Patch snipped.

 src/mesa/drivers/dri/i965/brw_binding_tables.c     |   2 +-
 src/mesa/drivers/dri/i965/brw_blorp.cpp            |   4 +-
 src/mesa/drivers/dri/i965/brw_blorp_blit.cpp       |  14 +-
 src/mesa/drivers/dri/i965/brw_clear.c              |  10 +-
 src/mesa/drivers/dri/i965/brw_clip.c               |   2 +-
 src/mesa/drivers/dri/i965/brw_clip_line.c          |   2 +-
 src/mesa/drivers/dri/i965/brw_clip_state.c         |   4 +-
 src/mesa/drivers/dri/i965/brw_clip_tri.c           |   2 +-
 src/mesa/drivers/dri/i965/brw_clip_util.c          |   6 +-
 src/mesa/drivers/dri/i965/brw_context.c            |  44 +++---
 src/mesa/drivers/dri/i965/brw_context.h            |   2 +-
 src/mesa/drivers/dri/i965/brw_draw.c               |  10 +-
 src/mesa/drivers/dri/i965/brw_draw_upload.c        |  40 +++---
 src/mesa/drivers/dri/i965/brw_eu.c                 |   6 +-
 src/mesa/drivers/dri/i965/brw_eu_compact.c         |  20 +--
 src/mesa/drivers/dri/i965/brw_eu_emit.c            | 152 ++++++++++-----------
 src/mesa/drivers/dri/i965/brw_fs.cpp               |  66 ++++-----
 .../drivers/dri/i965/brw_fs_copy_propagation.cpp   |   2 +-
 src/mesa/drivers/dri/i965/brw_fs_fp.cpp            |   4 +-
 src/mesa/drivers/dri/i965/brw_fs_generator.cpp     |  92 ++++++-------
 .../dri/i965/brw_fs_peephole_predicated_break.cpp  |   2 +-
 src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp  |   8 +-
 src/mesa/drivers/dri/i965/brw_fs_sel_peephole.cpp  |   4 +-
 src/mesa/drivers/dri/i965/brw_fs_visitor.cpp       |  66 ++++-----
 src/mesa/drivers/dri/i965/brw_gs.c                 |   6 +-
 src/mesa/drivers/dri/i965/brw_gs_emit.c            |   6 +-
 src/mesa/drivers/dri/i965/brw_gs_state.c           |   2 +-
 .../dri/i965/brw_lower_texture_gradients.cpp       |   2 +-
 src/mesa/drivers/dri/i965/brw_misc_state.c         |  56 ++++----
 .../drivers/dri/i965/brw_performance_monitor.c     |  20 +--
 src/mesa/drivers/dri/i965/brw_primitive_restart.c  |   4 +-
 src/mesa/drivers/dri/i965/brw_queryobj.c           |  14 +-
 .../drivers/dri/i965/brw_schedule_instructions.cpp |   4 +-
 src/mesa/drivers/dri/i965/brw_sf_emit.c            |   4 +-
 src/mesa/drivers/dri/i965/brw_sf_state.c           |   2 +-
 src/mesa/drivers/dri/i965/brw_shader.cpp           |  10 +-
 src/mesa/drivers/dri/i965/brw_state_dump.c         |  20 +--
 src/mesa/drivers/dri/i965/brw_state_upload.c       |   8 +-
 src/mesa/drivers/dri/i965/brw_surface_formats.c    |   8 +-
 src/mesa/drivers/dri/i965/brw_tex_layout.c         |  14 +-
 src/mesa/drivers/dri/i965/brw_urb.c                |   2 +-
 src/mesa/drivers/dri/i965/brw_vec4.cpp             |  14 +-
 .../drivers/dri/i965/brw_vec4_copy_propagation.cpp |   2 +-
 src/mesa/drivers/dri/i965/brw_vec4_generator.cpp   |  68 ++++-----
 src/mesa/drivers/dri/i965/brw_vec4_gs.c            |   2 +-
 src/mesa/drivers/dri/i965/brw_vec4_gs_visitor.cpp  |   6 +-
 src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp     |  84 ++++++------
 src/mesa/drivers/dri/i965/brw_vec4_vp.cpp          |   4 +-
 src/mesa/drivers/dri/i965/brw_vs.c                 |  12 +-
 src/mesa/drivers/dri/i965/brw_vs_state.c           |   6 +-
 src/mesa/drivers/dri/i965/brw_wm.c                 |  18 +--
 src/mesa/drivers/dri/i965/brw_wm_sampler_state.c   |  12 +-
 src/mesa/drivers/dri/i965/brw_wm_state.c           |   2 +-
 src/mesa/drivers/dri/i965/brw_wm_surface_state.c   |   6 +-
 src/mesa/drivers/dri/i965/gen6_blorp.cpp           |  10 +-
 src/mesa/drivers/dri/i965/gen6_cc.c                |   6 +-
 src/mesa/drivers/dri/i965/gen6_clip_state.c        |  10 +-
 src/mesa/drivers/dri/i965/gen6_depthstencil.c      |   2 +-
 src/mesa/drivers/dri/i965/gen6_multisample_state.c |   6 +-
 src/mesa/drivers/dri/i965/gen6_queryobj.c          |   6 +-
 src/mesa/drivers/dri/i965/gen6_sol.c               |   2 +-
 src/mesa/drivers/dri/i965/gen6_vs_state.c          |   4 +-
 src/mesa/drivers/dri/i965/gen6_wm_state.c          |   2 +-
 src/mesa/drivers/dri/i965/gen7_blorp.cpp           |   2 +-
 src/mesa/drivers/dri/i965/gen7_sampler_state.c     |   2 +-
 src/mesa/drivers/dri/i965/gen7_sol_state.c         |   6 +-
 src/mesa/drivers/dri/i965/gen7_urb.c               |   8 +-
 src/mesa/drivers/dri/i965/gen7_vs_state.c          |   6 +-
 src/mesa/drivers/dri/i965/gen8_fs_generator.cpp    |   6 +-
 src/mesa/drivers/dri/i965/gen8_generator.cpp       |   2 +-
 src/mesa/drivers/dri/i965/intel_batchbuffer.c      |  28 ++--
 src/mesa/drivers/dri/i965/intel_batchbuffer.h      |   2 +-
 src/mesa/drivers/dri/i965/intel_blit.c             |  20 +--
 src/mesa/drivers/dri/i965/intel_debug.c            |   2 +-
 src/mesa/drivers/dri/i965/intel_extensions.c       |  26 ++--
 src/mesa/drivers/dri/i965/intel_fbo.c              |   6 +-
 src/mesa/drivers/dri/i965/intel_mipmap_tree.c      |  28 ++--
 src/mesa/drivers/dri/i965/intel_tex_subimage.c     |   4 +-
 src/mesa/drivers/dri/i965/test_eu_compact.c        |   2 +-
 79 files changed, 590 insertions(+), 590 deletions(-)


More information about the mesa-dev mailing list