• Home
  • Raw
  • Download

Lines Matching full:fetch

168 	/* third pass, emit ALU/FETCH: */  in ir2_shader_assemble()
274 * FETCH instructions:
281 instr_fetch_t *fetch = (instr_fetch_t *)dwords; in instr_emit_fetch() local
286 memset(fetch, 0, sizeof(*fetch)); in instr_emit_fetch()
291 fetch->opc = instr->fetch.opc; in instr_emit_fetch()
293 if (instr->fetch.opc == VTX_FETCH) { in instr_emit_fetch()
294 instr_fetch_vtx_t *vtx = &fetch->vtx; in instr_emit_fetch()
296 assert(instr->fetch.stride <= 0xff); in instr_emit_fetch()
297 assert(instr->fetch.fmt <= 0x3f); in instr_emit_fetch()
298 assert(instr->fetch.const_idx <= 0x1f); in instr_emit_fetch()
299 assert(instr->fetch.const_idx_sel <= 0x3); in instr_emit_fetch()
306 vtx->const_index = instr->fetch.const_idx; in instr_emit_fetch()
307 vtx->const_index_sel = instr->fetch.const_idx_sel; in instr_emit_fetch()
308 vtx->format_comp_all = !!instr->fetch.is_signed; in instr_emit_fetch()
309 vtx->num_format_all = !instr->fetch.is_normalized; in instr_emit_fetch()
310 vtx->format = instr->fetch.fmt; in instr_emit_fetch()
311 vtx->stride = instr->fetch.stride; in instr_emit_fetch()
312 vtx->offset = instr->fetch.offset; in instr_emit_fetch()
319 /* XXX seems like every FETCH but the first has in instr_emit_fetch()
324 } else if (instr->fetch.opc == TEX_FETCH) { in instr_emit_fetch()
325 instr_fetch_tex_t *tex = &fetch->tex; in instr_emit_fetch()
327 assert(instr->fetch.const_idx <= 0x1f); in instr_emit_fetch()
333 tex->const_idx = instr->fetch.const_idx; in instr_emit_fetch()
342 tex->use_reg_lod = !instr->fetch.is_cube; in instr_emit_fetch()
351 ERROR_MSG("invalid fetch opc: %d\n", instr->fetch.opc); in instr_emit_fetch()
532 DEBUG_MSG("fetch src R%d.%s", reg->num, reg->swizzle); in reg_fetch_src_swiz()
538 ERROR_MSG("invalid fetch src swizzle: %s", reg->swizzle); in reg_fetch_src_swiz()
557 DEBUG_MSG("fetch dst R%d.%s", reg->num, reg->swizzle); in reg_fetch_dst_swiz()