intel: Rename gen_device prefix in filenames

export SEARCH_PATH="src/intel src/gallium/drivers/iris src/mesa/drivers/dri/i965"
find $SEARCH_PATH -type f -name "gen_device" -exec sh -c 'f="{}"; mv -- "$f" "${f/gen_device/intel_device}"' \;
grep -E "gen_device_info*\.[cph]" -rIl $SEARCH_PATH | xargs sed -ie "s/gen_device_info\(.*\.[cph]\)/intel_device_info\1/g"

Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10241>
This commit is contained in:
Anuj Phogat
2021-04-05 11:47:31 -07:00
committed by Marge Bot
parent dae083f188
commit cd39d3b1ad
42 changed files with 47 additions and 47 deletions
+1 -1
View File
@@ -33,7 +33,7 @@
#include <xf86drm.h>
#include "gen_device_info.h"
#include "intel_device_info.h"
static int
error(char *fmt, ...)
@@ -27,7 +27,7 @@
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "gen_device_info.h"
#include "intel_device_info.h"
#include "compiler/shader_enums.h"
#include "intel/common/intel_gem.h"
#include "util/bitscan.h"
@@ -22,8 +22,8 @@
*
*/
#ifndef GEN_DEVICE_INFO_H
#define GEN_DEVICE_INFO_H
#ifndef INTEL_DEVICE_INFO_H
#define INTEL_DEVICE_INFO_H
#include <stdbool.h>
#include <stdint.h>
@@ -360,4 +360,4 @@ int gen_get_aperture_size(int fd, uint64_t *size);
}
#endif
#endif /* GEN_DEVICE_INFO_H */
#endif /* INTEL_DEVICE_INFO_H */
@@ -3,7 +3,7 @@
#include <stdint.h>
#include <assert.h>
#include "gen_device_info.h"
#include "intel_device_info.h"
int
main(int argc, char *argv[])
+3 -3
View File
@@ -23,8 +23,8 @@
files_libintel_dev = files(
'intel_debug.c',
'intel_debug.h',
'gen_device_info.c',
'gen_device_info.h',
'intel_device_info.c',
'intel_device_info.h',
)
libintel_dev = static_library(
@@ -40,7 +40,7 @@ if with_tests
test('gen_device_info_test',
executable(
'gen_device_info_test',
'gen_device_info_test.c',
'intel_device_info_test.c',
include_directories : [inc_include, inc_src],
link_with : libintel_dev,
),