/third_party/mesa3d/src/panfrost/vulkan/ |
D | panvk_varyings.h | 74 panvk_varying_buf_index(const struct panvk_varyings_info *varyings, in panvk_varying_buf_index() argument 77 return util_bitcount(varyings->buf_mask & BITFIELD_MASK(b)); in panvk_varying_buf_index() 125 panvk_varying_size(const struct panvk_varyings_info *varyings, in panvk_varying_size() argument 134 return util_format_get_blocksize(varyings->varying[loc].format); in panvk_varying_size() 140 panvk_varyings_buf_count(struct panvk_varyings_info *varyings) in panvk_varyings_buf_count() argument 142 return util_bitcount(varyings->buf_mask) + (PAN_ARCH >= 6 ? 1 : 0); in panvk_varyings_buf_count() 147 panvk_varyings_alloc(struct panvk_varyings_info *varyings, in panvk_varyings_alloc() argument 152 if (!(varyings->buf_mask & (1 << i))) continue; in panvk_varyings_alloc() 154 unsigned buf_idx = panvk_varying_buf_index(varyings, i); in panvk_varyings_alloc() 155 unsigned size = varyings->buf[buf_idx].stride * vertex_count; in panvk_varyings_alloc() [all …]
|
D | panvk_vX_cs.c | 103 const struct panvk_varyings_info *varyings, in panvk_varying_hw_format() argument 107 gl_varying_slot loc = varyings->stage[stage].loc[idx]; in panvk_varying_hw_format() 128 if (varyings->varying[loc].format != PIPE_FORMAT_NONE) in panvk_varying_hw_format() 129 return pdev->formats[varyings->varying[loc].format].hw; in panvk_varying_hw_format() 140 const struct panvk_varyings_info *varyings, in panvk_emit_varying() argument 144 gl_varying_slot loc = varyings->stage[stage].loc[idx]; in panvk_emit_varying() 149 cfg.buffer_index = varyings->varying[loc].buf; in panvk_emit_varying() 150 cfg.offset = varyings->varying[loc].offset; in panvk_emit_varying() 153 panvk_varying_buf_index(varyings, in panvk_emit_varying() 157 cfg.format = panvk_varying_hw_format(dev, varyings, stage, idx); in panvk_emit_varying() [all …]
|
D | panvk_vX_pipeline.c | 764 panvk_pipeline_update_varying_slot(struct panvk_varyings_info *varyings, in panvk_pipeline_update_varying_slot() argument 774 varyings->stage[stage].loc[varyings->stage[stage].count++] = loc; in panvk_pipeline_update_varying_slot() 777 varyings->buf_mask |= 1 << buf_id; in panvk_pipeline_update_varying_slot() 781 assert(loc < ARRAY_SIZE(varyings->varying)); in panvk_pipeline_update_varying_slot() 784 enum pipe_format old_fmt = varyings->varying[loc].format; in panvk_pipeline_update_varying_slot() 786 BITSET_SET(varyings->active, loc); in panvk_pipeline_update_varying_slot() 799 varyings->varying[loc].format = new_fmt; in panvk_pipeline_update_varying_slot() 801 varyings->buf_mask |= 1 << buf_id; in panvk_pipeline_update_varying_slot() 814 for (unsigned i = 0; i < info->varyings.input_count; i++) { in panvk_pipeline_builder_collect_varyings() 815 panvk_pipeline_update_varying_slot(&pipeline->varyings, s, in panvk_pipeline_builder_collect_varyings() [all …]
|
D | panvk_vX_cs.h | 37 const struct panvk_varyings_info *varyings, 43 const struct panvk_varyings_info *varyings, 48 panvk_per_arch(emit_varying_bufs)(const struct panvk_varyings_info *varyings,
|
D | panvk_vX_cmd_buffer.c | 553 struct panvk_varyings_info *varyings = &cmdbuf->state.varyings; in panvk_draw_prepare_varyings() local 555 panvk_varyings_alloc(varyings, &cmdbuf->varying_pool.base, in panvk_draw_prepare_varyings() 558 unsigned buf_count = panvk_varyings_buf_count(varyings); in panvk_draw_prepare_varyings() 563 panvk_per_arch(emit_varying_bufs)(varyings, bufs.cpu); in panvk_draw_prepare_varyings() 564 if (BITSET_TEST(varyings->active, VARYING_SLOT_POS)) { in panvk_draw_prepare_varyings() 565 draw->position = varyings->buf[varyings->varying[VARYING_SLOT_POS].buf].address + in panvk_draw_prepare_varyings() 566 varyings->varying[VARYING_SLOT_POS].offset; in panvk_draw_prepare_varyings() 569 if (BITSET_TEST(varyings->active, VARYING_SLOT_PSIZ)) { in panvk_draw_prepare_varyings() 570 draw->psiz = varyings->buf[varyings->varying[VARYING_SLOT_PSIZ].buf].address + in panvk_draw_prepare_varyings() 571 varyings->varying[VARYING_SLOT_POS].offset; in panvk_draw_prepare_varyings() [all …]
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/ |
D | VaryingPacking_unittest.cpp | 70 std::vector<sh::ShaderVariable> varyings; in MakeVaryings() local 90 varyings.push_back(varying); in MakeVaryings() 93 return varyings; in MakeVaryings() 96 void AddVaryings(std::vector<sh::ShaderVariable> *varyings, in AddVaryings() argument 102 varyings->insert(varyings->end(), newVaryings.begin(), newVaryings.end()); in AddVaryings() 126 std::vector<sh::ShaderVariable> varyings = MakeVaryings(GL_FLOAT_VEC3, kMaxVaryings, 0); in TEST_P() local 127 AddVaryings(&varyings, GL_FLOAT_VEC2, 1, 0); in TEST_P() 128 ASSERT_FALSE(packVaryings(kMaxVaryings, varyings)); in TEST_P() 153 std::vector<sh::ShaderVariable> varyings = MakeVaryings(GL_FLOAT_VEC3, kMaxVaryings / 2, 2); in TEST_P() local 154 AddVaryings(&varyings, GL_FLOAT, kMaxVaryings / 2, 2); in TEST_P() [all …]
|
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/ |
D | VaryingPacking_unittest.cpp | 63 std::vector<sh::Varying> varyings; in MakeVaryings() local 83 varyings.push_back(varying); in MakeVaryings() 86 return varyings; in MakeVaryings() 89 void AddVaryings(std::vector<sh::Varying> *varyings, GLenum type, size_t count, size_t arraySize) in AddVaryings() argument 92 varyings->insert(varyings->end(), newVaryings.begin(), newVaryings.end()); in AddVaryings() 116 std::vector<sh::Varying> varyings = MakeVaryings(GL_FLOAT_VEC3, kMaxVaryings, 0); in TEST_P() local 117 AddVaryings(&varyings, GL_FLOAT_VEC2, 1, 0); in TEST_P() 118 ASSERT_FALSE(packVaryings(kMaxVaryings, varyings)); in TEST_P() 143 std::vector<sh::Varying> varyings = MakeVaryings(GL_FLOAT_VEC3, kMaxVaryings / 2, 2); in TEST_P() local 144 AddVaryings(&varyings, GL_FLOAT, kMaxVaryings / 2, 2); in TEST_P() [all …]
|
/third_party/mesa3d/src/gallium/drivers/d3d12/ |
D | d3d12_gs_variant.cpp | 60 uint64_t varyings = key->varyings.mask; in d3d12_make_passthrough_gs() local 69 nir->info.inputs_read = varyings; in d3d12_make_passthrough_gs() 70 nir->info.outputs_written = varyings; in d3d12_make_passthrough_gs() 79 while (varyings) { in d3d12_make_passthrough_gs() 82 const int i = u_bit_scan64(&varyings); in d3d12_make_passthrough_gs() 84 snprintf(tmp, ARRAY_SIZE(tmp), "in_%d", key->varyings.vars[i].driver_location); in d3d12_make_passthrough_gs() 87 glsl_array_type(key->varyings.vars[i].type, 1, false), in d3d12_make_passthrough_gs() 90 in->data.driver_location = key->varyings.vars[i].driver_location; in d3d12_make_passthrough_gs() 91 in->data.interpolation = key->varyings.vars[i].interpolation; in d3d12_make_passthrough_gs() 93 snprintf(tmp, ARRAY_SIZE(tmp), "out_%d", key->varyings.vars[i].driver_location); in d3d12_make_passthrough_gs() [all …]
|
/third_party/vk-gl-cts/modules/gles31/functional/ |
D | es31fSeparateShaderTests.cpp | 369 vector<VariableDeclaration> varyingCompatVtxOutputs (const VaryingInterface& varyings) in varyingCompatVtxOutputs() argument 371 vector<VariableDeclaration> outputs = varyings.vtxOutputs; in varyingCompatVtxOutputs() 375 outputs[i].interpolation = varyings.frgInputs[i].interpolation; in varyingCompatVtxOutputs() 376 outputs[i].name = varyings.frgInputs[i].name; in varyingCompatVtxOutputs() 692 VaryingParams varyings; member 705 paramCode = deUint32Hash(paramCode) + params.varyings.count; in paramsSeed() 706 paramCode = deUint32Hash(paramCode) + params.varyings.type; in paramsSeed() 707 paramCode = deUint32Hash(paramCode) + params.varyings.binding; in paramsSeed() 708 paramCode = deUint32Hash(paramCode) + params.varyings.vtxInterp; in paramsSeed() 709 paramCode = deUint32Hash(paramCode) + params.varyings.frgInterp; in paramsSeed() [all …]
|
/third_party/mesa3d/src/compiler/nir/ |
D | nir_gather_xfb_info.c | 30 nir_xfb_varyings_info *varyings, in add_var_xfb_varying() argument 35 if (varyings == NULL) in add_var_xfb_varying() 38 nir_xfb_varying_info *varying = &varyings->varyings[varyings->varying_count++]; in add_var_xfb_varying() 67 nir_xfb_varyings_info *varyings, in add_var_xfb_outputs() argument 86 add_var_xfb_varying(xfb, varyings, buffer, *offset, type); in add_var_xfb_outputs() 91 add_var_xfb_outputs(xfb, varyings, var, buffer, location, offset, in add_var_xfb_outputs() 97 add_var_xfb_outputs(xfb, varyings, var, buffer, location, offset, in add_var_xfb_outputs() 141 add_var_xfb_varying(xfb, varyings, buffer, *offset, type); in add_var_xfb_outputs() 270 qsort(varyings_info->varyings, varyings_info->varying_count, in nir_gather_xfb_info_with_varyings() 271 sizeof(varyings_info->varyings[0]), in nir_gather_xfb_info_with_varyings()
|
/third_party/vk-gl-cts/framework/referencerenderer/ |
D | rrShadingContext.hpp | 42 …const GenericVec4* varyings[3]; //!< Vertex shader outputs. Pointer will be NULL if there is no… member 83 return context.varyings[0][varyingLoc].get<T>(); in readPointVarying() 89 return packet.barycentric[0][fragNdx] * context.varyings[0][varyingLoc].get<T>() in readLineVarying() 90 + packet.barycentric[1][fragNdx] * context.varyings[1][varyingLoc].get<T>(); in readLineVarying() 96 return packet.barycentric[0][fragNdx] * context.varyings[0][varyingLoc].get<T>() in readTriangleVarying() 97 + packet.barycentric[1][fragNdx] * context.varyings[1][varyingLoc].get<T>() in readTriangleVarying() 98 + packet.barycentric[2][fragNdx] * context.varyings[2][varyingLoc].get<T>(); in readTriangleVarying() 104 …if (context.varyings[1] == DE_NULL) return readPointVarying<T> (packet, context, varyingLoc, frag… in readVarying() 105 …if (context.varyings[2] == DE_NULL) return readLineVarying<T> (packet, context, varyingLoc, fragN… in readVarying()
|
D | rrShadingContext.cpp | 38 varyings[0] = varying0; in FragmentShadingContext() 39 varyings[1] = varying1; in FragmentShadingContext() 40 varyings[2] = varying2; in FragmentShadingContext()
|
D | rrPrimitivePacket.cpp | 38 …itVertex (const tcu::Vec4& position, float pointSize, const GenericVec4* varyings, int primitiveID) in EmitVertex() argument 55 packet->outputs[ndx] = varyings[ndx]; in EmitVertex()
|
/third_party/flutter/skia/third_party/externals/angle2/src/tests/compiler_tests/ |
D | ShaderVariable_test.cpp | 295 const std::vector<sh::Varying> *varyings = sh::GetOutputVaryings(compiler); in TEST() local 296 for (const sh::Varying &varying : *varyings) in TEST() 304 varyings = sh::GetOutputVaryings(compiler); in TEST() 305 for (const sh::Varying &varying : *varyings) in TEST() 337 const std::vector<sh::Varying> *varyings = sh::GetOutputVaryings(compiler); in TEST() local 338 for (const sh::Varying &varying : *varyings) in TEST() 346 varyings = sh::GetOutputVaryings(compiler); in TEST() 347 for (const sh::Varying &varying : *varyings) in TEST() 383 const std::vector<sh::Varying> *varyings = sh::GetOutputVaryings(compiler); in TEST() local 384 for (const sh::Varying &varying : *varyings) in TEST() [all …]
|
/third_party/skia/third_party/externals/angle2/src/tests/compiler_tests/ |
D | ShaderVariable_test.cpp | 295 const std::vector<sh::ShaderVariable> *varyings = sh::GetOutputVaryings(compiler); in TEST() local 296 for (const sh::ShaderVariable &varying : *varyings) in TEST() 304 varyings = sh::GetOutputVaryings(compiler); in TEST() 305 for (const sh::ShaderVariable &varying : *varyings) in TEST() 337 const std::vector<sh::ShaderVariable> *varyings = sh::GetOutputVaryings(compiler); in TEST() local 338 for (const sh::ShaderVariable &varying : *varyings) in TEST() 346 varyings = sh::GetOutputVaryings(compiler); in TEST() 347 for (const sh::ShaderVariable &varying : *varyings) in TEST() 383 const std::vector<sh::ShaderVariable> *varyings = sh::GetOutputVaryings(compiler); in TEST() local 384 for (const sh::ShaderVariable &varying : *varyings) in TEST() [all …]
|
/third_party/vk-gl-cts/external/openglcts/data/mustpass/gl/khronos_mustpass/4.6.1.x/ |
D | gl42-compat-master.txt | 11 KHR-GL42-COMPAT.shaders42.varying.varyings.core_varyings 12 KHR-GL42-COMPAT.shaders42.varying.varyings.core_attributes 13 KHR-GL42-COMPAT.shaders42.varying.varyings.compatibility_varyings 14 KHR-GL42-COMPAT.shaders42.varying.varyings.compatibility_attributes
|
/third_party/vk-gl-cts/external/openglcts/data/mustpass/gl/khronos_mustpass/4.6.0.x/ |
D | gl42-compat-master.txt | 11 KHR-GL42-COMPAT.shaders42.varying.varyings.core_varyings 12 KHR-GL42-COMPAT.shaders42.varying.varyings.core_attributes 13 KHR-GL42-COMPAT.shaders42.varying.varyings.compatibility_varyings 14 KHR-GL42-COMPAT.shaders42.varying.varyings.compatibility_attributes
|
/third_party/mesa3d/src/gallium/drivers/etnaviv/ |
D | etnaviv_shader.c | 154 link.varyings[idx].reg, idx + 1, in etna_link_shaders() 155 link.varyings[idx].num_components, "xyzw", in etna_link_shaders() 156 link.varyings[idx].use[0], link.varyings[idx].use[1], in etna_link_shaders() 157 link.varyings[idx].use[2], link.varyings[idx].use[3], in etna_link_shaders() 158 link.varyings[idx].pa_attributes); in etna_link_shaders() 163 if (link.num_varyings > 0 && link.varyings[link.num_varyings - 1].num_components <= 2) in etna_link_shaders() 171 cs->PA_SHADER_ATTRIBUTES[idx] = link.varyings[idx].pa_attributes; in etna_link_shaders() 181 etna_bitarray_set(vs_output, 8, varid++, link.varyings[idx].reg); in etna_link_shaders() 230 const struct etna_varying *varying = &link.varyings[idx]; in etna_link_shaders()
|
/third_party/vk-gl-cts/doc/testspecs/GLES3/ |
D | functional.shaders.linkage.txt | 29 + Float, float-vector and matrix varyings 30 + Integer and int-vector varyings 31 + Flat and centroid varyings 36 + Interpolation rules for varyings
|
/third_party/mesa3d/src/panfrost/lib/ |
D | pan_shader.c | 90 struct pan_shader_varying *varyings, in collect_varyings() argument 146 varyings[loc + c].location = var->data.location + c; in collect_varyings() 147 varyings[loc + c].format = format; in collect_varyings() 225 collect_varyings(s, nir_var_shader_out, info->varyings.output, in GENX() 226 &info->varyings.output_count); in GENX() 285 collect_varyings(s, nir_var_shader_in, info->varyings.input, in GENX() 286 &info->varyings.input_count); in GENX()
|
/third_party/flutter/skia/src/gpu/mtl/ |
D | GrMtlVaryingHandler.mm | 19 // Metal only allows scalars (including bool and char) and vectors as varyings 29 // 32 varyings and less than 60 components across all varyings. If we hit this assert, we can
|
/third_party/skia/src/gpu/mtl/ |
D | GrMtlVaryingHandler.mm | 23 // Metal only allows scalars (including bool and char) and vectors as varyings 34 // 32 varyings and less than 60 components across all varyings. If we hit this assert, we can
|
/third_party/mesa3d/src/mesa/main/ |
D | transformfeedback.c | 875 const GLchar *const *varyings, GLenum bufferMode) in transform_feedback_varyings() argument 896 shProg->TransformFeedback.VaryingNames[i] = strdup(varyings[i]); in transform_feedback_varyings() 910 const GLchar *const *varyings, in _mesa_TransformFeedbackVaryings_no_error() argument 916 transform_feedback_varyings(ctx, shProg, count, varyings, bufferMode); in _mesa_TransformFeedbackVaryings_no_error() 921 const GLchar * const *varyings, in _mesa_TransformFeedbackVaryings() argument 967 if (strcmp(varyings[i], "gl_NextBuffer") == 0) in _mesa_TransformFeedbackVaryings() 979 if (strcmp(varyings[i], "gl_NextBuffer") == 0 || in _mesa_TransformFeedbackVaryings() 980 strcmp(varyings[i], "gl_SkipComponents1") == 0 || in _mesa_TransformFeedbackVaryings() 981 strcmp(varyings[i], "gl_SkipComponents2") == 0 || in _mesa_TransformFeedbackVaryings() 982 strcmp(varyings[i], "gl_SkipComponents3") == 0 || in _mesa_TransformFeedbackVaryings() [all …]
|
/third_party/flutter/skia/src/gpu/ops/ |
D | GrFillRRectOp.cpp | 379 GrGLSLVaryingHandler* varyings = args.fVaryingHandler; in onEmitCode() local 380 varyings->emitAttributes(proc); in onEmitCode() 381 varyings->addPassThroughAttribute(*proc.fColorAttrib, args.fOutputColor, in onEmitCode() 448 this->emitTransforms(v, varyings, args.fUniformHandler, localCoord, in onEmitCode() 459 varyings->addVarying("arccoord", &arcCoord); in onEmitCode() 599 GrGLSLVaryingHandler* varyings = args.fVaryingHandler; in onEmitCode() local 600 varyings->emitAttributes(proc); in onEmitCode() 601 varyings->addPassThroughAttribute(*proc.fColorAttrib, args.fOutputColor, in onEmitCode() 626 this->emitTransforms(v, varyings, args.fUniformHandler, localCoord, in onEmitCode() 642 varyings->addVarying("arccoord", &arcCoord); in onEmitCode()
|
/third_party/mesa3d/src/gallium/drivers/panfrost/ |
D | pan_cmdstream.c | 1928 for (unsigned i = 0; i < consumer->varyings.input_count; i++) { in pan_varying_present() 1929 gl_varying_slot loc = consumer->varyings.input[i].location; in pan_varying_present() 2016 unsigned producer_count = producer->varyings.output_count; in pan_assign_varyings() 2017 unsigned consumer_count = consumer->varyings.input_count; in pan_assign_varyings() 2019 const struct pan_shader_varying *producer_vars = producer->varyings.output; in pan_assign_varyings() 2020 const struct pan_shader_varying *consumer_vars = consumer->varyings.input; in pan_assign_varyings() 2104 unsigned producer_count = producer->info.varyings.output_count; in panfrost_emit_varying_descs() 2105 unsigned consumer_count = consumer->info.varyings.input_count; in panfrost_emit_varying_descs() 2145 signed j = pan_find_vary(consumer->info.varyings.input, in panfrost_emit_varying_descs() 2146 consumer->info.varyings.input_count, in panfrost_emit_varying_descs() [all …]
|