Lines Matching refs:bytecode
1639 bc->bytecode[id] = S_SQ_VTX_WORD0_VTX_INST(r600_isa_fetch_opcode(bc->isa->hw_class, vtx->op)) |
1645 bc->bytecode[id] |= S_SQ_VTX_WORD0_MEGA_FETCH_COUNT(vtx->mega_fetch_count);
1647 bc->bytecode[id++] = S_SQ_VTX_WORD1_DST_SEL_X(vtx->dst_sel_x) |
1657 bc->bytecode[id] = S_SQ_VTX_WORD2_OFFSET(vtx->offset)|
1660 bc->bytecode[id] |= ((vtx->buffer_index_mode & 0x3) << 21); // S_SQ_VTX_WORD2_BIM(vtx->buffer_index_mode);
1662 bc->bytecode[id] |= S_SQ_VTX_WORD2_MEGA_FETCH(1);
1664 bc->bytecode[id++] = 0;
1671 bc->bytecode[id] = S_SQ_TEX_WORD0_TEX_INST(
1678 bc->bytecode[id] |= ((tex->sampler_index_mode & 0x3) << 27) | // S_SQ_TEX_WORD0_SIM(tex->sampler_index_mode);
1681 bc->bytecode[id++] = S_SQ_TEX_WORD1_DST_GPR(tex->dst_gpr) |
1692 bc->bytecode[id++] = S_SQ_TEX_WORD2_OFFSET_X(tex->offset_x) |
1700 bc->bytecode[id++] = 0;
1710 bc->bytecode[id++] = S_SQ_ALU_WORD0_SRC0_SEL(alu->src[0].sel) |
1724 bc->bytecode[id++] = S_SQ_ALU_WORD1_DST_GPR(alu->dst.sel) |
1735 bc->bytecode[id++] = S_SQ_ALU_WORD1_DST_GPR(alu->dst.sel) |
1751 static void r600_bytecode_cf_vtx_build(uint32_t *bytecode, const struct r600_bytecode_cf *cf)
1753 *bytecode++ = S_SQ_CF_WORD0_ADDR(cf->addr >> 1);
1754 *bytecode++ = S_SQ_CF_WORD1_CF_INST(r600_isa_cf_opcode(ISA_CC_R600, cf->op)) |
1769 bc->bytecode[id++] = cf->isa[0];
1770 bc->bytecode[id++] = cf->isa[1];
1772 bc->bytecode[id++] = S_SQ_CF_ALU_WORD0_ADDR(cf->addr >> 1) |
1777 bc->bytecode[id++] = S_SQ_CF_ALU_WORD1_CF_INST(opcode) |
1786 r700_bytecode_cf_vtx_build(&bc->bytecode[id], cf);
1788 r600_bytecode_cf_vtx_build(&bc->bytecode[id], cf);
1790 bc->bytecode[id++] = S_SQ_CF_ALLOC_EXPORT_WORD0_RW_GPR(cf->output.gpr) |
1795 bc->bytecode[id++] = S_SQ_CF_ALLOC_EXPORT_WORD1_BURST_COUNT(cf->output.burst_count - 1) |
1804 bc->bytecode[id++] = S_SQ_CF_ALLOC_EXPORT_WORD0_RW_GPR(cf->output.gpr) |
1809 bc->bytecode[id++] = S_SQ_CF_ALLOC_EXPORT_WORD1_BURST_COUNT(cf->output.burst_count - 1) |
1816 bc->bytecode[id++] = S_SQ_CF_WORD0_ADDR(cf->cf_addr >> 1);
1817 bc->bytecode[id++] = S_SQ_CF_WORD1_CF_INST(opcode) |
1859 free(bc->bytecode);
1860 bc->bytecode = calloc(4, bc->ndw);
1861 if (bc->bytecode == NULL)
1902 bc->bytecode[addr++] = literal[i];
1946 free(bc->bytecode);
1947 bc->bytecode = NULL;
2199 fprintf(stderr, "bytecode %d dw -- %d gprs -- %d nstack -------------\n",
2206 fprintf(stderr, "%04d %08X %08X CF_NATIVE\n", id, bc->bytecode[id],
2207 bc->bytecode[id + 1]);
2212 fprintf(stderr, "%04d %08X %08X %s\n", id, bc->bytecode[id],
2213 bc->bytecode[id + 1], "ALU_EXT");
2216 fprintf(stderr, "%04d %08X %08X %s ", id, bc->bytecode[id],
2217 bc->bytecode[id + 1], cfop->name);
2231 fprintf(stderr, "%04d %08X %08X %s ", id, bc->bytecode[id],
2232 bc->bytecode[id + 1], cfop->name);
2243 o += fprintf(stderr, "%04d %08X %08X %s ", id, bc->bytecode[id],
2244 bc->bytecode[id + 1], cfop->name);
2280 bc->bytecode[id], bc->bytecode[id + 1], cfop->name);
2331 fprintf(stderr, "%04d %08X %08X %s ", id, bc->bytecode[id],
2332 bc->bytecode[id + 1], cfop->name);
2357 o += fprintf(stderr, " %04d %08X %08X ", id, bc->bytecode[id], bc->bytecode[id+1]);
2386 float *f = (float*)(bc->bytecode + id);
2387 o = fprintf(stderr, " %04d %08X", id, bc->bytecode[id]);
2389 fprintf(stderr, " %f (%d)\n", *f, *(bc->bytecode + id));
2399 o += fprintf(stderr, " %04d %08X %08X %08X ", id, bc->bytecode[id],
2400 bc->bytecode[id + 1], bc->bytecode[id + 2]);
2447 o += fprintf(stderr, " %04d %08X %08X %08X ", id, bc->bytecode[id],
2448 bc->bytecode[id + 1], bc->bytecode[id + 2]);
2504 o += fprintf(stderr, " %04d %08X %08X %08X ", id, bc->bytecode[id],
2505 bc->bytecode[id + 1], bc->bytecode[id + 2]);
2727 uint32_t *bytecode;
2860 bytecode = r600_buffer_map_sync_with_rings
2863 bytecode += shader->offset / 4;
2867 bytecode[i] = util_cpu_to_le32(bc.bytecode[i]);
2870 memcpy(bytecode, bc.bytecode, fs_size);