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@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17309>
This commit is contained in:
parent
ea72ec98bf
commit
dd76196cea
|
@ -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;
|
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue