From dd76196cea231b36468a7cee410d9fa261b56ec2 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Thu, 30 Jun 2022 01:47:09 -0700 Subject: [PATCH] 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 Part-of: --- src/intel/compiler/{brw_eu.cpp => brw_eu.c} | 6 +++--- src/intel/compiler/meson.build | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) rename src/intel/compiler/{brw_eu.cpp => brw_eu.c} (99%) 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',