intel/compiler: Make brw_private.h and simd selector helpers C++

We don't intend to expose neither to drivers, so it is fine to be C++.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Ivan Briano <ivan.briano@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19601>
This commit is contained in:
Caio Oliveira
2022-11-07 17:35:16 -08:00
committed by Marge Bot
parent fb7de303ba
commit a943dbf475
3 changed files with 4 additions and 12 deletions

View File

@@ -27,10 +27,6 @@
#include "brw_compiler.h"
#ifdef __cplusplus
extern "C" {
#endif
unsigned brw_required_dispatch_width(const struct shader_info *info);
bool brw_simd_should_compile(void *mem_ctx,
@@ -50,8 +46,4 @@ int brw_simd_select_for_workgroup_size(const struct intel_device_info *devinfo,
const struct brw_cs_prog_data *prog_data,
const unsigned *sizes);
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif // BRW_PRIVATE_H

View File

@@ -129,9 +129,9 @@ brw_simd_should_compile(void *mem_ctx,
}
const bool env_skip[3] = {
INTEL_DEBUG(DEBUG_NO8),
INTEL_DEBUG(DEBUG_NO16),
INTEL_DEBUG(DEBUG_NO32),
INTEL_DEBUG(DEBUG_NO8) != 0,
INTEL_DEBUG(DEBUG_NO16) != 0,
INTEL_DEBUG(DEBUG_NO32) != 0,
};
if (unlikely(env_skip[simd])) {

View File

@@ -115,7 +115,7 @@ libintel_compiler_files = files(
'brw_schedule_instructions.cpp',
'brw_shader.cpp',
'brw_shader.h',
'brw_simd_selection.c',
'brw_simd_selection.cpp',
'brw_vec4_builder.h',
'brw_vec4_cmod_propagation.cpp',
'brw_vec4_copy_propagation.cpp',