Lines Matching refs:index

138 /* Builds a 64-bit hash table key for an index */
539 /* Immediate index given in bytes. */
554 /* Index needs to be in bytes, but NIR gives the index
729 /* Sample index above is left as zero. For multisampling, we need to
1048 bi_index index = bi_preload(b, 59);
1052 index = bi_iadd_imm_i32(b, index, 4);
1055 bi_index address = bi_lea_buf_imm(b, index);
1384 bi_index index = bi_src_index(&src);
1392 return index;
1396 return bi_iadd_u32(b, index, bi_imm_u32(offset), false);
1936 bi_mov_i32_to(b, bi_get_index(instr->def.index, false, 0), bi_imm_u32(acc));
3151 * the bottom 16-bits and (if present) the cube face index in the top 16-bits.
3162 * u8vec4 <offset, ms index>. By default all are zero, so if have either a
3163 * nonzero texel offset or a nonzero multisample index, we build a u8vec4 with
3200 * component is either offset.z or multisample index depending on context. Build
3219 /* No multisample index with 3D */
3234 /* Component 2: multisample index */
3320 * Since the cube face index is preshifted, this is easy to pack with a bitwise
3415 bi_index index = bi_src_index(&instr->src[i].src);
3424 cx = bi_emit_texc_cube_coord(b, index, &cy);
3427 cx = bi_extract(b, index, 0);
3428 cy = bi_extract(b, index, MIN2(1, components - 1));
3435 bi_extract(b, index, 2);
3442 bi_extract(b, index, components - 1), T);
3457 bi_emit_texc_lod_88(b, index, sz == 16);
3465 bi_emit_texc_lod_cube(b, index);
3476 bi_emit_texc_lod_88(b, index, sz == 16);
3492 dregs[BIFROST_TEX_DREG_SHADOW] = index;
3497 index = bi_iadd_u32(b, index, bi_imm_u32(instr->texture_index), false);
3499 dregs[BIFROST_TEX_DREG_TEXTURE] = index;
3505 index = bi_iadd_u32(b, index, bi_imm_u32(instr->sampler_index), false);
3507 dregs[BIFROST_TEX_DREG_SAMPLER] = index;
3520 /* Choose an index mode */
3530 desc.index = instr->texture_index;
3536 desc.index = instr->texture_index;
3539 desc.index = instr->sampler_index;
3545 desc.index = instr->texture_index;
3549 desc.index = instr->sampler_index;
3622 bi_index index = bi_src_index(&instr->src[i].src);
3630 bi_emit_texc_cube_coord(b, index,
3636 sregs[VALHALL_TEX_SREG_X_COORD] = index;
3639 sregs[VALHALL_TEX_SREG_Y_COORD] = bi_extract(b, index, 1);
3643 bi_extract(b, index, 2);
3649 bi_extract(b, index, components - 1);
3663 bi_emit_texc_lod_88(b, index, sz == 16);
3671 bi_emit_texc_lod_88(b, index, sz == 16);
3681 sregs[VALHALL_TEX_SREG_SHADOW] = index;
3686 texture = index;
3691 sampler = index;
3699 /* Generate packed offset + ms index + LOD register. These default to
5010 block->index = ctx->num_blocks++;