Lines Matching defs:value
710 const struct dxil_value *value[4],
723 value[0], value[1], value[2], value[3],
757 const struct dxil_value *value[4],
770 value[0], value[1], value[2], value[3],
783 const struct dxil_value *value)
796 coord[0], coord[1], coord[2], value
1671 const struct dxil_value *value)
1677 return dxil_emit_cast(&ctx->mod, DXIL_CAST_BITCAST, type, value);
1682 const struct dxil_value *value)
1688 return dxil_emit_cast(&ctx->mod, DXIL_CAST_BITCAST, type, value);
1693 const struct dxil_value *value)
1697 /* We pre-defined the dest value because of a phi node, so bitcast while storing if the
1701 const struct dxil_type *value_type = dxil_value_get_type(value);
1703 value = dxil_emit_cast(&ctx->mod, DXIL_CAST_BITCAST, expect_type, value);
1705 ctx->defs[ssa->index].chans[chan] = value;
1710 const struct dxil_value *value)
1713 assert(value);
1714 store_ssa_def(ctx, &dest->ssa, chan, value);
1719 const struct dxil_value *value, nir_alu_type type)
1725 store_dest_value(ctx, dest, chan, value);
1735 store_dest_value(ctx, dest, chan, value);
1744 const struct dxil_value *value)
1747 store_dest(ctx, &alu->dest.dest, chan, value,
1765 const struct dxil_value *value = get_src_ssa(ctx, src->ssa, chan);
1775 if (dxil_value_type_equal_to(value, expect_type))
1776 return value;
1777 assert(dxil_value_type_bitsize_equal_to(value, bit_size));
1778 return bitcast_to_int(ctx, bit_size, value);
1784 if (dxil_value_type_equal_to(value, dxil_module_get_float_type(&ctx->mod, bit_size)))
1785 return value;
1786 assert(dxil_value_type_bitsize_equal_to(value, bit_size));
1787 return bitcast_to_float(ctx, bit_size, value);
1790 if (!dxil_value_type_bitsize_equal_to(value, 1)) {
1792 dxil_module_get_int_type(&ctx->mod, 1), value);
1794 return value;
1808 const struct dxil_value *value = get_src_ssa(ctx, ssa_src, chan);
1809 return dxil_value_get_type(value);
1977 const struct dxil_value *value)
2001 value);
2725 const struct dxil_value *value = call_unary_external_function(ctx, name, dxil_intr);
2726 store_dest_value(ctx, &intr->dest, 0, value);
2734 const struct dxil_value *value = call_unary_external_function(ctx,
2739 value = dxil_emit_binop(&ctx->mod, DXIL_BINOP_AND, value,
2745 store_dest_value(ctx, &intr->dest, 0, value);
2773 const struct dxil_value *value =
2775 store_dest_value(ctx, &intr->dest, i, value);
2779 const struct dxil_value *value = dxil_module_get_float_const(&ctx->mod, 0.0f);
2780 store_dest_value(ctx, &intr->dest, i, value);
2822 * 2. A handle from load_vulkan_descriptor - just get the stored SSA value
2855 const struct dxil_value *value = get_src_ssa(ctx, src->ssa, 0);
2858 return value;
2887 get_resource_id(ctx, class, space, base_binding), value, !const_block_index);
2946 const struct dxil_value *value[4];
2948 value[i] = get_src(ctx, &intr->src[0], i, nir_type_uint);
2949 if (!value[i])
2963 value[i] = int32_undef;
2970 return emit_bufferstore_call(ctx, handle, coord, value, write_mask, DXIL_I32);
2976 const struct dxil_value *value =
2983 if (!value || !mask || !handle || !offset)
2996 emit_atomic_binop(ctx, handle, DXIL_ATOMIC_OR, coord, value) != NULL;
3022 const struct dxil_value *ptr, *value;
3028 value = get_src(ctx, &intr->src[0], 0, nir_type_uint);
3029 if (!value)
3033 return dxil_emit_store(&ctx->mod, value, ptr, 4, false);
3044 if (!dxil_emit_atomicrmw(&ctx->mod, value, ptr, DXIL_RMWOP_OR, false,
3072 const struct dxil_value *ptr, *value;
3078 value = get_src(ctx, &intr->src[0], 0, nir_type_uint);
3079 if (!value)
3082 return dxil_emit_store(&ctx->mod, value, ptr, 4, false);
3231 const struct dxil_value *value = get_src(ctx, &intr->src[0], i, out_type);
3232 if (!col || !row || !value)
3236 opcode, output_id, row, col, value
3566 emit_discard_if_with_value(struct ntd_context *ctx, const struct dxil_value *value)
3574 value
3587 const struct dxil_value *value = get_src(ctx, &intr->src[0], 0, nir_type_bool);
3588 if (!value)
3591 return emit_discard_if_with_value(ctx, value);
3597 const struct dxil_value *value = dxil_module_get_int1_const(&ctx->mod, true);
3598 return emit_discard_if_with_value(ctx, value);
3679 const struct dxil_value *value[4];
3681 value[i] = get_src(ctx, &intr->src[3], i, in_type);
3682 if (!value[i])
3687 value[i] = int32_undef;
3696 return emit_bufferstore_call(ctx, handle, coord, value, write_mask, overload);
3698 return emit_texturestore_call(ctx, handle, coord, value, write_mask, overload);
3800 const struct dxil_value *value = get_src(ctx, &intr->src[3], 0, type);
3801 if (!value)
3805 emit_atomic_binop(ctx, handle, op, coord, value);
3950 const struct dxil_value *value =
3953 if (!value || !handle || !offset)
3965 emit_atomic_binop(ctx, handle, op, coord, value);
4023 const struct dxil_value *ptr, *value, *retval;
4029 value = get_src(ctx, &intr->src[1], 0, type);
4030 if (!value)
4033 retval = dxil_emit_atomicrmw(&ctx->mod, value, ptr, op, false,
4413 const struct dxil_value *value;
4416 value = dxil_module_get_int1_const(&ctx->mod,
4417 load_const->value[i].b);
4421 value = dxil_module_get_int16_const(&ctx->mod,
4422 load_const->value[i].u16);
4425 value = dxil_module_get_int32_const(&ctx->mod,
4426 load_const->value[i].u32);
4430 value = dxil_module_get_int64_const(&ctx->mod,
4431 load_const->value[i].u64);
4436 if (!value)
4439 store_ssa_def(ctx, &load_const->def, i, value);
4493 /* Haven't finished chasing the deref chain yet, just store the value */
5206 * value for each phi source, and when storing we convert if the incoming
5207 * value has a different type then the one expected by the phi node.
5683 uint8_t value, char *name,
5691 var->data.location = value;
5724 gl_system_value value;
5772 if (BITSET_TEST(ctx->shader->info.system_values_read, info->value)) {
5774 info->value, info->name,