glave: rename codegen'd files to better reflect where they are used.
* Several of the filenames started with glvtrace_* but are also used by glvreplay and glvdebug because they are related to trace packet structures, which must be shared.
* Also rename the generated files from 'xgl' to 'vk' (at least those that are related to glave. I didn't rename the once that come from the driver's scripts).
* There were a few manually written files that needed to have updated includes due to the name changes.
diff --git a/tools/glave/scripts/vk_generate.py b/tools/glave/scripts/vk_generate.py
index e96dc7c..bec34ed 100755
--- a/tools/glave/scripts/vk_generate.py
+++ b/tools/glave/scripts/vk_generate.py
@@ -1387,7 +1387,7 @@
return "\n".join(pid_enum)
# Interpret functions used on replay to read in packets and interpret their contents
- # This code gets generated into glvtrace_xgl_xgl_structs.h file
+ # This code gets generated into glv_vk_vk_structs.h file
def _generate_interp_funcs(self):
# Custom txt for given function and parameter. First check if param is NULL, then insert txt if not
# TODO : This code is now too large and complex, need to make codegen smarter for pointers embedded in struct params to handle those cases automatically
@@ -3341,8 +3341,8 @@
class GlaveTraceHeader(Subcommand):
def generate_header(self):
header_txt = []
- header_txt.append('#include "glvtrace_xgl_xgl_structs.h"')
- header_txt.append('#include "glvtrace_xgl_packet_id.h"\n')
+ header_txt.append('#include "glv_vk_vk_structs.h"')
+ header_txt.append('#include "glv_vk_packet_id.h"\n')
header_txt.append('void AttachHooks();')
header_txt.append('void DetachHooks();')
header_txt.append('void InitTracer(void);\n')
@@ -3389,9 +3389,9 @@
header_txt.append('#include "glv_trace_packet_utils.h"')
header_txt.append('#include "glv_trace_packet_identifiers.h"')
header_txt.append('#include "glv_interconnect.h"')
- header_txt.append('#include "glvtrace_xgl_xgl_structs.h"')
- header_txt.append('#include "glvtrace_xgl_xgldbg_structs.h"')
- header_txt.append('#include "glvtrace_xgl_xglwsix11ext_structs.h"')
+ header_txt.append('#include "glv_vk_vk_structs.h"')
+ header_txt.append('#include "glv_vk_vkdbg_structs.h"')
+ header_txt.append('#include "glv_vk_vkwsix11ext_structs.h"')
header_txt.append('#include "xgl_enum_string_helper.h"')
header_txt.append('#if defined(WIN32)')
header_txt.append('#define snprintf _snprintf')
@@ -3455,8 +3455,8 @@
header_txt.append('#include "glv_platform.h"')
header_txt.append('#include "glv_common.h"')
header_txt.append('#include "glvtrace_xgl_xglwsix11ext.h"')
- header_txt.append('#include "glvtrace_xgl_xglwsix11ext_structs.h"')
- header_txt.append('#include "glvtrace_xgl_packet_id.h"')
+ header_txt.append('#include "glv_vk_vkwsix11ext_structs.h"')
+ header_txt.append('#include "glv_vk_packet_id.h"')
header_txt.append('#ifdef WIN32')
header_txt.append('#include "mhook/mhook-lib/mhook.h"')
header_txt.append('#endif')
@@ -3510,8 +3510,8 @@
header_txt.append('#include "glv_common.h"')
header_txt.append('#include "glvtrace_xgl_xgl.h"')
header_txt.append('#include "glvtrace_xgl_xgldbg.h"')
- header_txt.append('#include "glvtrace_xgl_xgldbg_structs.h"')
- header_txt.append('#include "glvtrace_xgl_packet_id.h"')
+ header_txt.append('#include "glv_vk_vkdbg_structs.h"')
+ header_txt.append('#include "glv_vk_packet_id.h"')
header_txt.append('#ifdef WIN32')
header_txt.append('#include "mhook/mhook-lib/mhook.h"')
header_txt.append('#endif')
@@ -3581,10 +3581,10 @@
header_txt.append('#include <queue>')
header_txt.append('glvreplay_settings *g_pReplaySettings;')
header_txt.append('extern "C" {')
- header_txt.append('#include "glvtrace_xgl_xgl_structs.h"')
- header_txt.append('#include "glvtrace_xgl_xgldbg_structs.h"')
- header_txt.append('#include "glvtrace_xgl_xglwsix11ext_structs.h"')
- header_txt.append('#include "glvtrace_xgl_packet_id.h"')
+ header_txt.append('#include "glv_vk_vk_structs.h"')
+ header_txt.append('#include "glv_vk_vkdbg_structs.h"')
+ header_txt.append('#include "glv_vk_vkwsix11ext_structs.h"')
+ header_txt.append('#include "glv_vk_packet_id.h"')
header_txt.append('#include "xgl_enum_string_helper.h"\n}\n')
header_txt.append('#define APP_NAME "glvreplay_xgl"')
header_txt.append('#define IDI_ICON 101\n')