Mesa (main): intel/compiler: Convert brw_eu.cpp back to brw_eu.c
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Jul 1 00:15:51 UTC 2022
Module: Mesa
Branch: main
Commit: dd76196cea231b36468a7cee410d9fa261b56ec2
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=dd76196cea231b36468a7cee410d9fa261b56ec2
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Thu Jun 30 01:47:09 2022 -0700
intel/compiler: Convert brw_eu.cpp back to brw_eu.c
Now that we've removed the thread_local lookup tables using
pointer-to-member C++ features, this can go back to being a standard
C file, like it was in the past. We just need to annotate a couple
of things with "struct".
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17309>
---
src/intel/compiler/{brw_eu.cpp => brw_eu.c} | 6 +++---
src/intel/compiler/meson.build | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/intel/compiler/brw_eu.cpp b/src/intel/compiler/brw_eu.c
similarity index 99%
rename from src/intel/compiler/brw_eu.cpp
rename to src/intel/compiler/brw_eu.c
index f8450b488e2..ac04ea1089f 100644
--- a/src/intel/compiler/brw_eu.cpp
+++ b/src/intel/compiler/brw_eu.c
@@ -147,7 +147,7 @@ brw_get_default_access_mode(struct brw_codegen *p)
return p->current->access_mode;
}
-tgl_swsb
+struct tgl_swsb
brw_get_default_swsb(struct brw_codegen *p)
{
return p->current->swsb;
@@ -295,7 +295,7 @@ void brw_set_default_acc_write_control(struct brw_codegen *p, unsigned value)
p->current->acc_wr_control = value;
}
-void brw_set_default_swsb(struct brw_codegen *p, tgl_swsb value)
+void brw_set_default_swsb(struct brw_codegen *p, struct tgl_swsb value)
{
p->current->swsb = value;
}
@@ -364,7 +364,7 @@ const unsigned *brw_get_program( struct brw_codegen *p,
return (const unsigned *)p->store;
}
-const brw_shader_reloc *
+const struct brw_shader_reloc *
brw_get_shader_relocs(struct brw_codegen *p, unsigned *num_relocs)
{
*num_relocs = p->num_relocs;
diff --git a/src/intel/compiler/meson.build b/src/intel/compiler/meson.build
index 10fbb281876..da09bbe203b 100644
--- a/src/intel/compiler/meson.build
+++ b/src/intel/compiler/meson.build
@@ -38,7 +38,7 @@ libintel_compiler_files = files(
'brw_disasm.c',
'brw_disasm_info.c',
'brw_disasm_info.h',
- 'brw_eu.cpp',
+ 'brw_eu.c',
'brw_eu_compact.c',
'brw_eu_defines.h',
'brw_eu_emit.c',
More information about the mesa-commit
mailing list