Home | History | Annotate | Download | only in a2xx

Lines Matching refs:fetch

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