Lines Matching refs:index

1071        * as the 0-based image index. Use space 1 so that we can keep using these
1695 assert(ssa->index < ctx->num_defs);
1699 if (ctx->defs[ssa->index].chans[chan]) {
1700 const struct dxil_type *expect_type = dxil_value_get_type(ctx->defs[ssa->index].chans[chan]);
1705 ctx->defs[ssa->index].chans[chan] = value;
1754 assert(ssa->index < ctx->num_defs);
1756 assert(ctx->defs[ssa->index].chans[chan]);
1757 return ctx->defs[ssa->index].chans[chan];
2737 /* Mask coverage with (1 << sample index). Note, done as an AND to handle extrapolation cases. */
2799 const struct dxil_value *index)
2811 const struct dxil_value *ops[] = { ptr, zero, index };
2820 * 1. Constant resource index - just look it up in precomputed handle arrays
2823 * 3. Dynamic resource index - create a handle for it here
3002 const struct dxil_value *zero, *index;
3015 index = get_src(ctx, &intr->src[1], 0, nir_type_uint);
3017 index = get_src(ctx, &intr->src[2], 0, nir_type_uint);
3018 if (!index)
3021 const struct dxil_value *ops[] = { ctx->sharedvars, zero, index };
3055 const struct dxil_value *zero, *index;
3067 index = get_src(ctx, &intr->src[1], 0, nir_type_uint);
3068 if (!index)
3071 const struct dxil_value *ops[] = { ctx->scratchvars, zero, index };
3475 const struct dxil_value *index =
3477 if (!index)
3480 const struct dxil_value *ptr = emit_gep_for_index(ctx, var, index);
3496 const struct dxil_value *zero, *index;
3510 index = get_src(ctx, &intr->src[0], 0, nir_type_uint);
3511 if (!index)
3514 const struct dxil_value *ops[] = { ctx->sharedvars, zero, index };
3532 const struct dxil_value *zero, *index;
3546 index = get_src(ctx, &intr->src[0], 0, nir_type_uint);
3547 if (!index)
3550 const struct dxil_value *ops[] = { ctx->scratchvars, zero, index };
4010 const struct dxil_value *zero, *index;
4018 index = get_src(ctx, &intr->src[0], 0, nir_type_uint);
4019 if (!index)
4022 const struct dxil_value *ops[] = { ctx->sharedvars, zero, index };
4046 const struct dxil_value *zero, *index;
4054 index = get_src(ctx, &intr->src[0], 0, nir_type_uint);
4055 if (!index)
4058 const struct dxil_value *ops[] = { ctx->sharedvars, zero, index };
4112 nir_intrinsic_instr* index = nir_src_as_intrinsic(intr->src[0]);
4114 assert(index && index->intrinsic == nir_intrinsic_vulkan_resource_index);
4116 unsigned binding = nir_intrinsic_binding(index);
4117 unsigned space = nir_intrinsic_desc_set(index);
4477 const struct dxil_value *offset = get_src(ctx, &instr->arr.index, 0, nir_type_uint32);
4549 return emit_branch(ctx, instr->instr.block->successors[0]->index);
4593 blocks[num_incoming] = src->pred->index;
5063 assert(block->index < ctx->mod.cur_emitting_func->num_basic_block_ids);
5064 ctx->mod.cur_emitting_func->basic_block_ids[block->index] = ctx->mod.cur_emitting_func->curr_block;
5092 int then_succ = nir_if_last_then_block(if_stmt)->successors[0]->index;
5100 else_succ = nir_if_last_else_block(if_stmt)->successors[0]->index;
5103 if (!emit_cond_branch(ctx, cond, then_block->index,
5104 else_block ? else_block->index : then_succ))
5132 if (!emit_branch(ctx, first_block->index))
5138 if (!emit_branch(ctx, first_block->index))