}
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) },
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];
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 },
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++) {