intel: Rename genx keyword in filenames to gfxx

Graphics / Mesa 3D Graphics Library / Mesa - Anuj Phogat [gmail.com] - 2 April 2021 18:33 UTC

Commands used to do the changes: export SEARCH_PATH="src/intel src/gallium/drivers/iris src/mesa/drivers/dri/i965" find $SEARCH_PATH -type f -name "*gen[[:digit:]]*.*[cph]" -exec sh -c 'f="{}"; mv -- "$f" "${f/gen/gfx}"' \; grep -E "gen[[:digit:]]+_[[:alnum:]_]*\.(c|h|cpp)" -rIl $SEARCH_PATH | xargs sed -ie "s/gen\([[:digit:]]\+_[[:alnum:]_]*\.\)\(c\|h\|cpp\)/gfx\1\2/g" grep -E "_gen[[:digit:]]+[[:alnum:]_]*\.(c|h|cpp)" -rIl $SEARCH_PATH | xargs sed -ie "s/\(_\)gen\([[:digit:]]\+[[:alnum:]_]*\.\)\(c\|h\|cpp\)/\1gfx\2\3/g" grep -E "GEN[[:digit:]]+[[:alnum:]_]*_H( |$)" -rIl $SEARCH_PATH | xargs sed -ie "s/GEN\([[:digit:]]\+[[:alnum:]_]*_H\)\( \|$\)/GFX\1\2/g"

Exclude the "_pack.h" changes: grep -E "gfx[[:digit:]]+_pack\.h" -rIl $SEARCH_PATH | xargs sed -ie "s/gfx\([[:digit:]]\+_pack\.h\)/gen\1/g"

dc28390e3c6 intel: Rename genx keyword in filenames to gfxx
src/intel/Makefile.sources | 42 +++++++++++-----------
src/intel/compiler/brw_vec4_gs_visitor.cpp | 2 +-
.../{gen6_gs_visitor.cpp => gfx6_gs_visitor.cpp} | 4 +--
.../{gen6_gs_visitor.h => gfx6_gs_visitor.h} | 6 ++--
src/intel/compiler/meson.build | 4 +--
src/intel/isl/isl.c | 12 +++----
src/intel/isl/{isl_gen12.c => isl_gfx12.c} | 4 +--
src/intel/isl/{isl_gen12.h => isl_gfx12.h} | 6 ++--
src/intel/isl/{isl_gen4.c => isl_gfx4.c} | 2 +-
src/intel/isl/{isl_gen4.h => isl_gfx4.h} | 6 ++--
src/intel/isl/{isl_gen6.c => isl_gfx6.c} | 2 +-
src/intel/isl/{isl_gen6.h => isl_gfx6.h} | 6 ++--
src/intel/isl/{isl_gen7.c => isl_gfx7.c} | 2 +-
src/intel/isl/{isl_gen7.h => isl_gfx7.h} | 6 ++--
src/intel/isl/{isl_gen8.c => isl_gfx8.c} | 2 +-
src/intel/isl/{isl_gen8.h => isl_gfx8.h} | 6 ++--
src/intel/isl/{isl_gen9.c => isl_gfx9.c} | 4 +--
src/intel/isl/{isl_gen9.h => isl_gfx9.h} | 6 ++--
src/intel/isl/meson.build | 28 +++++++--------
src/intel/tools/gen_context.h | 4 +--
.../tools/{gen10_context.h => gfx10_context.h} | 6 ++--
src/intel/tools/{gen8_context.h => gfx8_context.h} | 6 ++--
src/intel/tools/meson.build | 2 +-
src/intel/vulkan/genX_pipeline.c | 2 +-
.../{gen7_cmd_buffer.c => gfx7_cmd_buffer.c} | 0
.../{gen8_cmd_buffer.c => gfx8_cmd_buffer.c} | 0
src/intel/vulkan/meson.build | 8 ++---
src/mesa/drivers/dri/i965/Makefile.sources | 26 +++++++-------
src/mesa/drivers/dri/i965/brw_context.h | 12 +++----
src/mesa/drivers/dri/i965/brw_curbe.c | 2 +-
src/mesa/drivers/dri/i965/brw_state.h | 8 ++---
src/mesa/drivers/dri/i965/genX_blorp_exec.c | 2 +-
.../i965/{gen4_blorp_exec.h => gfx4_blorp_exec.h} | 0
.../i965/{gen6_clip_state.c => gfx6_clip_state.c} | 1 -
...gen6_constant_state.c => gfx6_constant_state.c} | 4 +--
...ultisample_state.c => gfx6_multisample_state.c} | 0
.../dri/i965/{gen6_queryobj.c => gfx6_queryobj.c} | 2 +-
.../{gen6_sampler_state.c => gfx6_sampler_state.c} | 0
.../drivers/dri/i965/{gen6_sol.c => gfx6_sol.c} | 2 +-
.../drivers/dri/i965/{gen6_urb.c => gfx6_urb.c} | 0
.../dri/i965/{gen7_l3_state.c => gfx7_l3_state.c} | 0
.../i965/{gen7_sol_state.c => gfx7_sol_state.c} | 2 +-
.../drivers/dri/i965/{gen7_urb.c => gfx7_urb.c} | 0
.../{gen8_depth_state.c => gfx8_depth_state.c} | 0
...ultisample_state.c => gfx8_multisample_state.c} | 0
src/mesa/drivers/dri/i965/meson.build | 26 +++++++-------
46 files changed, 132 insertions(+), 133 deletions(-)

Upstream: cgit.freedesktop.org


  • Share