/third_party/mesa3d/src/amd/compiler/tests/ |
D | test_sdwa.cpp | 37 …SDWA_instruction *sdwa = &bld.vop2_sdwa(aco_opcode::v_mul_f32, bld.def(v1), inputs[0], inputs[1]).… 40 … sdwa = &bld.vop2_sdwa(aco_opcode::v_mul_f32, bld.def(v1b), inputs[0], inputs[1]).instr->sdwa(); 42 sdwa = &bld.vop2_sdwa(aco_opcode::v_mul_f32, bld.def(v1), inputs[0], inputs[1]).instr->sdwa(); 60 bld.vop2_sdwa(aco_opcode::v_mul_f32, bld.def(v1), inputs[0], inputs[1]); 75 bld.vop2_sdwa(aco_opcode::v_mul_f32, bld.def(v1), inputs[2], inputs[1]); 76 bld.vop2_sdwa(aco_opcode::v_mul_f32, bld.def(v1), inputs[0], inputs[3]); 80 bld.vop2_sdwa(aco_opcode::v_mul_f32, bld.def(v1), Operand::c32(4u), inputs[1]); 81 bld.vop2_sdwa(aco_opcode::v_mul_f32, bld.def(v1), inputs[0], Operand::c32(4u)); 86 bld.vop2_sdwa(aco_opcode::v_mul_f32, bld.def(v1), Operand::c32(0x1234u), inputs[1]); 87 bld.vop2_sdwa(aco_opcode::v_mul_f32, bld.def(v1), inputs[0], Operand::c32(0x1234u)); [all …]
|
D | test_optimizer.cpp | 36 Temp neg_b = fneg(inputs[1]); 37 writeout(0, bld.vop2(aco_opcode::v_mul_f32, bld.def(v1), inputs[0], neg_b)); 43 Temp neg_a = fneg(inputs[0]); 49 writeout(2, bld.vop2(aco_opcode::v_mul_f32, bld.def(v1), neg_neg_a, inputs[1])); 54 writeout(3, bld.vop2(aco_opcode::v_mul_f32, bld.def(v1), abs_neg_a, inputs[1])); 58 Temp abs_a = fabs(inputs[0]); 60 writeout(4, bld.vop2(aco_opcode::v_mul_f32, bld.def(v1), neg_abs_a, inputs[1])); 64 … writeout(5, bld.vop2_dpp(aco_opcode::v_mul_f32, bld.def(v1), neg_a, inputs[1], dpp_row_sl(1))); 68 writeout(6, bld.vop2(aco_opcode::v_add_f32, bld.def(v1), neg_a, inputs[1])); 72 writeout(7, bld.vop2(aco_opcode::v_add_f32, bld.def(v1), inputs[1], neg_a)); [all …]
|
D | test_builder.cpp | 37 writeout(0, bld.v_mul_imm(bld.def(v1), inputs[0], 0)); 40 writeout(1, bld.v_mul_imm(bld.def(v1), inputs[0], 1)); 44 writeout(2, bld.v_mul_imm(bld.def(v1), inputs[0], 4)); 48 writeout(3, bld.v_mul_imm(bld.def(v1), inputs[0], 2147483648u)); 56 writeout(4, bld.v_mul_imm(bld.def(v1), inputs[0], 9)); 63 writeout(5, bld.v_mul_imm(bld.def(v1), inputs[0], 7)); 74 writeout(6, bld.v_mul_imm(bld.def(v1), inputs[0], 4 | 64)); 83 writeout(7, bld.v_mul_imm(bld.def(v1), inputs[0], 4 | 64 | 256)); 93 writeout(8, bld.v_mul_imm(bld.def(v1), inputs[0], 4 | 64 | 256 | 2048)); 104 writeout(9, bld.v_mul_imm(bld.def(v1), inputs[0], 2 | 4)); [all …]
|
/third_party/vk-gl-cts/modules/gles31/functional/ |
D | es31fShaderPackingFunctionTests.cpp | 127 m_spec.inputs.push_back(Symbol("in0", glu::VarType(glu::TYPE_FLOAT_VEC2, precision))); in PackSnorm2x16Case() 136 std::vector<tcu::Vec2> inputs; in iterate() local 143 inputs.push_back(tcu::Vec2(0.0f, 0.0f)); in iterate() 144 inputs.push_back(tcu::Vec2(-1.0f, 1.0f)); in iterate() 145 inputs.push_back(tcu::Vec2(0.5f, -0.5f)); in iterate() 146 inputs.push_back(tcu::Vec2(-1.5f, 1.5f)); in iterate() 147 inputs.push_back(tcu::Vec2(0.25f, -0.75f)); in iterate() 154 inputs.push_back(tcu::Vec2(x, y)); in iterate() 162 inputs.push_back(tcu::Vec2(x, y)); in iterate() 165 outputs.resize(inputs.size()); in iterate() [all …]
|
D | es31fShaderIntegerFunctionTests.cpp | 177 virtual bool compare (const void* const* inputs, const void* const* outputs) = 0; 258 const int numInputScalars = computeTotalScalarSize(m_spec.inputs); in iterate() 262 …const vector<void*> inputPointers = getInputOutputPointers(m_spec.inputs, inputData, m_numValue… in iterate() 274 const vector<int> inScalarSizes = getScalarSizes(m_spec.inputs); in iterate() 297 m_testCtx.getLog() << TestLog::Message << " " << m_spec.inputs[inNdx].name << " = " in iterate() 298 << VarValue(m_spec.inputs[inNdx].varType, curInputPtr[inNdx]) in iterate() 333 m_spec.inputs.push_back(Symbol("x", glu::VarType(baseType, precision))); in UaddCarryCase() 334 m_spec.inputs.push_back(Symbol("y", glu::VarType(baseType, precision))); in UaddCarryCase() 343 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues() 344 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in getInputValues() [all …]
|
D | es31fShaderCommonFunctionTests.cpp | 239 virtual bool compare (const void* const* inputs, const void* const* outputs) = 0; 388 const int numInputScalars = computeTotalScalarSize(m_spec.inputs); in iterate() 392 …const vector<void*> inputPointers = getInputOutputPointers(m_spec.inputs, inputData, m_numValue… in iterate() 404 const vector<int> inScalarSizes = getScalarSizes(m_spec.inputs); in iterate() 427 m_testCtx.getLog() << TestLog::Message << " " << m_spec.inputs[inNdx].name << " = " in iterate() 428 << VarValue(m_spec.inputs[inNdx].varType, curInputPtr[inNdx]) in iterate() 463 m_spec.inputs.push_back(Symbol("in0", glu::VarType(baseType, precision))); in AbsCase() 484 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues() 485 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in getInputValues() 494 bool compare (const void* const* inputs, const void* const* outputs) in compare() argument [all …]
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/shaderexecutor/ |
D | vktShaderPackingFunctionTests.cpp | 145 std::vector<tcu::Vec2> inputs; in iterate() local 152 inputs.push_back(tcu::Vec2(0.0f, 0.0f)); in iterate() 153 inputs.push_back(tcu::Vec2(-1.0f, 1.0f)); in iterate() 154 inputs.push_back(tcu::Vec2(0.5f, -0.5f)); in iterate() 155 inputs.push_back(tcu::Vec2(-1.5f, 1.5f)); in iterate() 156 inputs.push_back(tcu::Vec2(0.25f, -0.75f)); in iterate() 161 inputs.push_back(tcu::randomVector<float, 2>(rnd, tcu::Vec2(-1.25f), tcu::Vec2(1.25f))); in iterate() 167 inputs.push_back(tcu::randomVector<float, 2>(rnd, tcu::Vec2(-0.5e6f), tcu::Vec2(0.5e6f))); in iterate() 170 outputs.resize(inputs.size()); in iterate() 172 …m_testCtx.getLog() << TestLog::Message << "Executing shader for " << inputs.size() << " input valu… in iterate() [all …]
|
D | vktShaderIntegerFunctionTests.cpp | 318 virtual bool compare (const void* const* inputs, const void* const* outputs) = 0; 337 const int numInputScalars = computeTotalScalarSize(m_spec.inputs); in iterate() 341 …const vector<void*> inputPointers = getInputOutputPointers(m_spec.inputs, inputData, m_numValue… in iterate() 352 const vector<int> inScalarSizes = getScalarSizes(m_spec.inputs); in iterate() 375 testCtx.getLog() << TestLog::Message << " " << m_spec.inputs[inNdx].name << " = " in iterate() 376 << VarValue(m_spec.inputs[inNdx].varType, curInputPtr[inNdx]) in iterate() 413 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues() 414 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in getInputValues() 465 bool compare (const void* const* inputs, const void* const* outputs) in compare() argument 467 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare() [all …]
|
/third_party/vk-gl-cts/modules/gles3/functional/ |
D | es3fShaderPackingFunctionTests.cpp | 127 m_spec.inputs.push_back(Symbol("in0", glu::VarType(glu::TYPE_FLOAT_VEC2, precision))); in PackSnorm2x16Case() 136 std::vector<tcu::Vec2> inputs; in iterate() local 143 inputs.push_back(tcu::Vec2(0.0f, 0.0f)); in iterate() 144 inputs.push_back(tcu::Vec2(-1.0f, 1.0f)); in iterate() 145 inputs.push_back(tcu::Vec2(0.5f, -0.5f)); in iterate() 146 inputs.push_back(tcu::Vec2(-1.5f, 1.5f)); in iterate() 147 inputs.push_back(tcu::Vec2(0.25f, -0.75f)); in iterate() 154 inputs.push_back(tcu::Vec2(x, y)); in iterate() 162 inputs.push_back(tcu::Vec2(x, y)); in iterate() 165 outputs.resize(inputs.size()); in iterate() [all …]
|
D | es3fShaderCommonFunctionTests.cpp | 166 virtual bool compare (const void* const* inputs, const void* const* outputs) = 0; 313 const int numInputScalars = computeTotalScalarSize(m_spec.inputs); in iterate() 317 …const vector<void*> inputPointers = getInputOutputPointers(m_spec.inputs, inputData, m_numValue… in iterate() 329 const vector<int> inScalarSizes = getScalarSizes(m_spec.inputs); in iterate() 352 m_testCtx.getLog() << TestLog::Message << " " << m_spec.inputs[inNdx].name << " = " in iterate() 353 << VarValue(m_spec.inputs[inNdx].varType, curInputPtr[inNdx]) in iterate() 388 m_spec.inputs.push_back(Symbol("in0", glu::VarType(baseType, precision))); in AbsCase() 409 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues() 410 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in getInputValues() 419 bool compare (const void* const* inputs, const void* const* outputs) in compare() argument [all …]
|
/third_party/mesa3d/src/gallium/drivers/llvmpipe/ |
D | lp_rast_linear_fallback.c | 92 const struct lp_rast_shader_inputs *inputs, in shade_quads() argument 106 task->thread_data.raster_state.viewport_index = inputs->viewport_index; in shade_quads() 113 inputs->frontfacing, in shade_quads() 114 GET_A0(inputs), in shade_quads() 115 GET_DADX(inputs), in shade_quads() 116 GET_DADY(inputs), in shade_quads() 131 const struct lp_rast_shader_inputs *inputs, in partial() argument 139 shade_quads(task, inputs, ix * STAMP_SIZE, iy * STAMP_SIZE, mask); in partial() 148 const struct lp_rast_shader_inputs *inputs, in lp_rast_linear_rect_fallback() argument 180 partial(task, inputs, ix0, iy0, in lp_rast_linear_rect_fallback() [all …]
|
D | lp_rast_linear.c | 71 const struct lp_rast_shader_inputs *inputs = arg.shade_tile; in lp_rast_linear_tile() local 72 if (inputs->disable) in lp_rast_linear_tile() 84 if (variant->jit_linear_blit && inputs->is_blit) { in lp_rast_linear_tile() 90 GET_A0(inputs), in lp_rast_linear_tile() 91 GET_DADX(inputs), in lp_rast_linear_tile() 92 GET_DADY(inputs), in lp_rast_linear_tile() 104 GET_A0(inputs), in lp_rast_linear_tile() 105 GET_DADX(inputs), in lp_rast_linear_tile() 106 GET_DADY(inputs), in lp_rast_linear_tile() 118 lp_rast_linear_rect_fallback(task, inputs, &box); in lp_rast_linear_tile() [all …]
|
/third_party/flutter/skia/src/gpu/effects/ |
D | GrSkSLFP.cpp | 47 const SkSL::Program* GrSkSLFPFactory::getSpecialization(const SkSL::String& key, const void* inputs, in getSpecialization() argument 61 int32_t v = *(int32_t*) (((uint8_t*) inputs) + offset); in getSpecialization() 67 float v = *(float*) (((uint8_t*) inputs) + offset); in getSpecialization() 71 bool v = *(((bool*) inputs) + offset); in getSpecialization() 220 char* inputs = (char*) outer.fInputs.get(); in onSetData() local 224 float f1 = ((uint8_t*) inputs)[offset++] / 255.0; in onSetData() 225 float f2 = ((uint8_t*) inputs)[offset++] / 255.0; in onSetData() 226 float f3 = ((uint8_t*) inputs)[offset++] / 255.0; in onSetData() 227 float f4 = ((uint8_t*) inputs)[offset++] / 255.0; in onSetData() 236 float f1 = *(float*) (inputs + offset); in onSetData() [all …]
|
/third_party/skia/third_party/externals/tint/test/shader_io/ |
D | compute_input_builtins_struct.wgsl.expected.glsl | 21 void tint_symbol_inner(ComputeInputs inputs) { 22 …t foo = ((((inputs.local_invocation_id.x + inputs.local_invocation_index) + inputs.global_invocati… 32 tint_symbol_2 inputs; 33 inputs.local_invocation_id = gl_LocalInvocationID; 34 inputs.local_invocation_index = uint(gl_LocalInvocationIndex); 35 inputs.global_invocation_id = gl_GlobalInvocationID; 36 inputs.workgroup_id = gl_WorkGroupID; 37 inputs.num_workgroups = uvec3(); 38 tint_symbol(inputs);
|
D | fragment_input_builtins_struct.wgsl.expected.glsl | 19 void tint_symbol_inner(FragmentInputs inputs) { 20 if (inputs.front_facing) { 21 vec4 foo = inputs.position; 22 uint bar = (inputs.sample_index + inputs.sample_mask); 32 tint_symbol_2 inputs; 33 inputs.position = gl_FragCoord; 34 inputs.front_facing = gl_FrontFacing; 35 inputs.sample_index = uint(gl_SampleID); 36 inputs.sample_mask = uint(gl_SampleMask); 37 tint_symbol(inputs);
|
D | fragment_input_locations_struct.wgsl.expected.glsl | 19 void tint_symbol_inner(FragmentInputs inputs) { 20 int i = inputs.loc0; 21 uint u = inputs.loc1; 22 float f = inputs.loc2; 23 vec4 v = inputs.loc3; 36 tint_symbol_2 inputs; 37 inputs.loc0 = loc0; 38 inputs.loc1 = loc1; 39 inputs.loc2 = loc2; 40 inputs.loc3 = loc3; [all …]
|
D | vertex_input_locations_struct.wgsl.expected.glsl | 20 vec4 tint_symbol_inner(VertexInputs inputs) { 21 int i = inputs.loc0; 22 uint u = inputs.loc1; 23 float f = inputs.loc2; 24 vec4 v = inputs.loc3; 40 tint_symbol_2 inputs; 41 inputs.loc0 = loc0; 42 inputs.loc1 = loc1; 43 inputs.loc2 = loc2; 44 inputs.loc3 = loc3; [all …]
|
D | interpolate_input_parameters.wgsl.expected.glsl | 31 tint_symbol_3 inputs; 32 inputs.none = none; 33 inputs.tint_symbol_1 = tint_symbol_1; 34 inputs.perspective_center = perspective_center; 35 inputs.perspective_centroid = perspective_centroid; 36 inputs.perspective_sample = perspective_sample; 37 inputs.linear_center = linear_center; 38 inputs.linear_centroid = linear_centroid; 39 inputs.linear_sample = linear_sample; 40 tint_symbol(inputs);
|
D | interpolate_input_struct.wgsl.expected.glsl | 42 tint_symbol_4 inputs; 43 inputs.none = none; 44 inputs.tint_symbol = tint_symbol; 45 inputs.perspective_center = perspective_center; 46 inputs.perspective_centroid = perspective_centroid; 47 inputs.perspective_sample = perspective_sample; 48 inputs.linear_center = linear_center; 49 inputs.linear_centroid = linear_centroid; 50 inputs.linear_sample = linear_sample; 51 tint_symbol_1(inputs);
|
/third_party/glslang/Test/ |
D | hlsl.intrinsics.negative.frag | 5 asdouble(inF0, inF1); // expected error: only integer inputs 7 countbits(inF0); // expected error: only integer inputs 8 cross(inF0, inF1); // expected error: only on float3 inputs 9 D3DCOLORtoUBYTE4(inF0); // expected error: only on float4 inputs 12 f16tof32(inF0); // expected error: only integer inputs 13 firstbithigh(inF0); // expected error: only integer inputs 14 firstbitlow(inF0); // expected error: only integer inputs 24 msad4(inF0, float2(0), float4(0)); // expected error: only integer inputs 29 reversebits(inF0); // expected error: only integer inputs 39 GetRenderTargetSamplePosition(inF0); // expected error: only integer inputs [all …]
|
/third_party/mesa3d/src/imagination/rogue/ |
D | rogue_encoders.c | 42 bool rogue_encoder_pass(uint64_t *value, size_t inputs, ...) in rogue_encoder_pass() argument 46 assert(inputs == 1); in rogue_encoder_pass() 48 va_start(args, inputs); in rogue_encoder_pass() 65 bool rogue_encoder_drc(uint64_t *value, size_t inputs, ...) 78 bool rogue_encoder_imm(uint64_t *value, size_t inputs, ...) 92 bool rogue_encoder_ls_1_16(uint64_t *value, size_t inputs, ...) in rogue_encoder_ls_1_16() argument 97 assert(inputs == 1); in rogue_encoder_ls_1_16() 99 va_start(args, inputs); in rogue_encoder_ls_1_16() 146 size_t inputs, \ 152 assert(inputs == 2); \ [all …]
|
/third_party/ffmpeg/libavfilter/ |
D | af_join.c | 49 int inputs; member 72 …{ "inputs", "Number of input streams.", OFFSET(inputs), AV_OPT_TYPE_INT, { … 135 if (input_idx < 0 || input_idx >= s->inputs) { in parse_maps() 176 s->input_frames = av_mallocz_array(s->inputs, sizeof(*s->input_frames)); in join_init() 188 for (i = 0; i < s->inputs; i++) { in join_init() 210 for (i = 0; i < s->inputs && s->input_frames; i++) { in join_uninit() 235 if ((ret = ff_channel_layouts_ref(layouts, &ctx->inputs[i]->outcfg.channel_layouts)) < 0) in join_query_formats() 247 uint64_t *inputs) in guess_map_matching() argument 252 AVFilterLink *link = ctx->inputs[i]; in guess_map_matching() 255 !(ch->out_channel & inputs[i])) { in guess_map_matching() [all …]
|
D | af_agate.c | 245 static const AVFilterPad inputs[] = { variable 269 .inputs = inputs, 290 if ((ret = ff_inlink_consume_frame(ctx->inputs[0], &in[0])) > 0) { in activate() 297 if ((ret = ff_inlink_consume_frame(ctx->inputs[1], &in[1])) > 0) { in activate() 311 in[i] = ff_get_audio_buffer(ctx->inputs[i], nb_samples); in activate() 328 ctx->inputs[0], ctx->inputs[1]); in activate() 337 FF_FILTER_FORWARD_STATUS(ctx->inputs[0], ctx->outputs[0]); in activate() 338 FF_FILTER_FORWARD_STATUS(ctx->inputs[1], ctx->outputs[0]); in activate() 341 ff_inlink_request_frame(ctx->inputs[0]); in activate() 343 ff_inlink_request_frame(ctx->inputs[1]); in activate() [all …]
|
D | vf_freezeframes.c | 54 AVFilterLink *sourcelink = ctx->inputs[0]; in config_output() 55 AVFilterLink *replacelink = ctx->inputs[1]; in config_output() 79 int drop = ctx->inputs[0]->frame_count_out >= s->first && in activate() 80 ctx->inputs[0]->frame_count_out <= s->last; in activate() 81 int replace = ctx->inputs[1]->frame_count_out == s->replace; in activate() 87 ret = ff_inlink_consume_frame(ctx->inputs[0], &frame); in activate() 102 ret = ff_inlink_consume_frame(ctx->inputs[0], &frame); in activate() 110 ret = ff_inlink_consume_frame(ctx->inputs[1], &frame); in activate() 119 FF_FILTER_FORWARD_STATUS(ctx->inputs[0], outlink); in activate() 120 FF_FILTER_FORWARD_STATUS(ctx->inputs[1], outlink); in activate() [all …]
|
/third_party/mbedtls/tests/scripts/ |
D | test_psa_constant_names.py | 42 inputs = inputs_class() 44 inputs.parse_header(header) 46 inputs.parse_test_cases(test_cases) 47 inputs.add_numerical_values() 48 inputs.gather_arguments() 49 return inputs 80 def collect_values(inputs: InputsForTest, 89 names = inputs.get_names(type_word) 90 expressions = sorted(inputs.generate_expressions(names)) 106 def run_one(self, inputs: InputsForTest, type_word: str) -> None: [all …]
|