intel/elk: Use anonymous namespace in fs_combine_constants

Certain GitLab CI build use a combination of LTO and -Werror=odr that
will fail if both ELK and BRW share the same names for those helpers,
so wrap the ELK ones around anonymous namespace.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27563>
This commit is contained in:
Caio Oliveira 2024-02-23 15:52:58 -08:00 committed by Marge Bot
parent 2bc18fe46f
commit 32db7a9533

View file

@ -43,6 +43,8 @@ using namespace elk;
static const bool debug = false;
namespace {
enum PACKED interpreted_type {
float_only = 0,
integer_only,
@ -1304,6 +1306,8 @@ parcel_out_registers(struct imm *imm, unsigned len, const elk_bblock_t *cur_bloc
}
}
} /* namespace */
bool
elk_fs_visitor::opt_combine_constants()
{