• Home
  • Raw
  • Download

Lines Matching refs:kcache

941 		struct r600_bytecode_kcache *kcache,  in r600_bytecode_alloc_kcache_line()  argument
947 if (kcache[i].mode) { in r600_bytecode_alloc_kcache_line()
950 if (kcache[i].bank < bank) in r600_bytecode_alloc_kcache_line()
953 if ((kcache[i].bank == bank && kcache[i].addr > line+1) || in r600_bytecode_alloc_kcache_line()
954 kcache[i].bank > bank) { in r600_bytecode_alloc_kcache_line()
956 if (kcache[kcache_banks-1].mode) { in r600_bytecode_alloc_kcache_line()
961 memmove(&kcache[i+1],&kcache[i], (kcache_banks-i-1)*sizeof(struct r600_bytecode_kcache)); in r600_bytecode_alloc_kcache_line()
962 kcache[i].mode = V_SQ_CF_KCACHE_LOCK_1; in r600_bytecode_alloc_kcache_line()
963 kcache[i].bank = bank; in r600_bytecode_alloc_kcache_line()
964 kcache[i].addr = line; in r600_bytecode_alloc_kcache_line()
965 kcache[i].index_mode = index_mode; in r600_bytecode_alloc_kcache_line()
969 d = line - kcache[i].addr; in r600_bytecode_alloc_kcache_line()
972 kcache[i].addr--; in r600_bytecode_alloc_kcache_line()
973 if (kcache[i].mode == V_SQ_CF_KCACHE_LOCK_2) { in r600_bytecode_alloc_kcache_line()
979 } else if (kcache[i].mode == V_SQ_CF_KCACHE_LOCK_1) { in r600_bytecode_alloc_kcache_line()
980 kcache[i].mode = V_SQ_CF_KCACHE_LOCK_2; in r600_bytecode_alloc_kcache_line()
987 kcache[i].mode = V_SQ_CF_KCACHE_LOCK_2; in r600_bytecode_alloc_kcache_line()
992 kcache[i].mode = V_SQ_CF_KCACHE_LOCK_1; in r600_bytecode_alloc_kcache_line()
993 kcache[i].bank = bank; in r600_bytecode_alloc_kcache_line()
994 kcache[i].addr = line; in r600_bytecode_alloc_kcache_line()
995 kcache[i].index_mode = index_mode; in r600_bytecode_alloc_kcache_line()
1003 struct r600_bytecode_kcache *kcache, in r600_bytecode_alloc_inst_kcache_lines() argument
1018 if ((r = r600_bytecode_alloc_kcache_line(bc, kcache, bank, line, index_mode))) in r600_bytecode_alloc_inst_kcache_lines()
1026 struct r600_bytecode_kcache * kcache) in r600_bytecode_assign_kcache_banks() argument
1042 switch (kcache[j].mode) { in r600_bytecode_assign_kcache_banks()
1048 if (kcache[j].bank == alu->src[i].kc_bank && in r600_bytecode_assign_kcache_banks()
1049 kcache[j].addr <= line && in r600_bytecode_assign_kcache_banks()
1050 line < kcache[j].addr + kcache[j].mode) { in r600_bytecode_assign_kcache_banks()
1051 alu->src[i].sel = sel - (kcache[j].addr<<4); in r600_bytecode_assign_kcache_banks()
1066 struct r600_bytecode_kcache *kcache = kcache_sets; in r600_bytecode_alloc_kcache_lines() local
1069 memcpy(kcache, bc->cf_last->kcache, 4 * sizeof(struct r600_bytecode_kcache)); in r600_bytecode_alloc_kcache_lines()
1071 if ((r = r600_bytecode_alloc_inst_kcache_lines(bc, kcache, alu))) { in r600_bytecode_alloc_kcache_lines()
1079 kcache = bc->cf_last->kcache; in r600_bytecode_alloc_kcache_lines()
1080 if ((r = r600_bytecode_alloc_inst_kcache_lines(bc, kcache, alu))) { in r600_bytecode_alloc_kcache_lines()
1086 memcpy(bc->cf_last->kcache, kcache, 4 * sizeof(struct r600_bytecode_kcache)); in r600_bytecode_alloc_kcache_lines()
1090 if (kcache[2].mode != V_SQ_CF_KCACHE_NOP || in r600_bytecode_alloc_kcache_lines()
1091 kcache[0].index_mode || kcache[1].index_mode || kcache[2].index_mode || kcache[3].index_mode) { in r600_bytecode_alloc_kcache_lines()
1626 S_SQ_CF_ALU_WORD0_KCACHE_MODE0(cf->kcache[0].mode) | in r600_bytecode_cf_build()
1627 S_SQ_CF_ALU_WORD0_KCACHE_BANK0(cf->kcache[0].bank) | in r600_bytecode_cf_build()
1628 S_SQ_CF_ALU_WORD0_KCACHE_BANK1(cf->kcache[1].bank); in r600_bytecode_cf_build()
1631 S_SQ_CF_ALU_WORD1_KCACHE_MODE1(cf->kcache[1].mode) | in r600_bytecode_cf_build()
1632 S_SQ_CF_ALU_WORD1_KCACHE_ADDR0(cf->kcache[0].addr) | in r600_bytecode_cf_build()
1633 S_SQ_CF_ALU_WORD1_KCACHE_ADDR1(cf->kcache[1].addr) | in r600_bytecode_cf_build()
1731 r600_bytecode_assign_kcache_banks(bc, alu, cf->kcache); in r600_bytecode_build()
2056 if (cf->kcache[i].mode) { in r600_bytecode_disasm()
2057 int c_start = (cf->kcache[i].addr << 4); in r600_bytecode_disasm()
2058 int c_end = c_start + (cf->kcache[i].mode << 4); in r600_bytecode_disasm()
2060 i, cf->kcache[i].bank, c_start, c_end, in r600_bytecode_disasm()
2061 cf->kcache[i].index_mode ? " " : "", in r600_bytecode_disasm()
2062 cf->kcache[i].index_mode ? index_mode[cf->kcache[i].index_mode] : ""); in r600_bytecode_disasm()