diff --git a/src/intel/compiler/brw_eu.cpp b/src/intel/compiler/brw_eu.cpp index 963d371f1cd..d52bbb7614e 100644 --- a/src/intel/compiler/brw_eu.cpp +++ b/src/intel/compiler/brw_eu.cpp @@ -589,7 +589,7 @@ brw_disassemble(const struct intel_device_info *devinfo, } static const struct opcode_desc opcode_descs[] = { - /* IR, HW, name, nsrc, ndst, gens */ + /* IR, HW, name, nsrc, ndst, gfx_vers */ { BRW_OPCODE_ILLEGAL, 0, "illegal", 0, 0, GFX_ALL }, { BRW_OPCODE_SYNC, 1, "sync", 1, 0, GFX_GE(GFX12) }, { BRW_OPCODE_MOV, 1, "mov", 1, 1, GFX_LT(GFX12) }, @@ -721,7 +721,7 @@ lookup_opcode_desc(gfx_ver *index_gen, index_descs[l] = NULL; for (unsigned i = 0; i < ARRAY_SIZE(opcode_descs); i++) { - if (opcode_descs[i].gens & *index_gen) { + if (opcode_descs[i].gfx_vers & *index_gen) { const unsigned l = opcode_descs[i].*key; assert(l < index_size && !index_descs[l]); index_descs[l] = &opcode_descs[i]; diff --git a/src/intel/compiler/brw_eu.h b/src/intel/compiler/brw_eu.h index 340bceb6072..138eb2bd599 100644 --- a/src/intel/compiler/brw_eu.h +++ b/src/intel/compiler/brw_eu.h @@ -1452,7 +1452,7 @@ struct opcode_desc { const char *name; int nsrc; int ndst; - int gens; + int gfx_vers; }; const struct opcode_desc * diff --git a/src/intel/compiler/test_eu_compact.cpp b/src/intel/compiler/test_eu_compact.cpp index 07e8b230934..db3daa52669 100644 --- a/src/intel/compiler/test_eu_compact.cpp +++ b/src/intel/compiler/test_eu_compact.cpp @@ -271,7 +271,7 @@ gen_f0_1_MOV_GRF_GRF(struct brw_codegen *p) struct { void (*func)(struct brw_codegen *p); - int gens; + int gfx_vers; } tests[] = { { gen_MOV_GRF_GRF, GFX_ALL }, { gen_ADD_GRF_GRF_GRF, GFX_ALL }, @@ -290,7 +290,7 @@ run_tests(const struct intel_device_info *devinfo) bool fail = false; for (unsigned i = 0; i < ARRAY_SIZE(tests); i++) { - if ((tests[i].gens & gfx_ver_from_devinfo(devinfo)) == 0) + if ((tests[i].gfx_vers & gfx_ver_from_devinfo(devinfo)) == 0) continue; for (int align_16 = 0; align_16 <= 1; align_16++) {