/external/mesa3d/src/gallium/drivers/vc4/ |
D | vc4_uniforms.c | 33 struct vc4_cl_out **uniforms, in write_texture_p0() argument 41 cl_reloc(job, &job->uniforms, uniforms, rsc->bo, sview->texture_p0); in write_texture_p0() 46 struct vc4_cl_out **uniforms, in write_texture_p1() argument 55 cl_aligned_u32(uniforms, sview->texture_p1 | sampler->texture_p1); in write_texture_p1() 60 struct vc4_cl_out **uniforms, in write_texture_p2() argument 68 cl_aligned_u32(uniforms, in write_texture_p2() 77 struct vc4_cl_out **uniforms, in write_texture_first_level() argument 84 cl_aligned_f(uniforms, texture->u.tex.first_level); in write_texture_first_level() 89 struct vc4_cl_out **uniforms, in write_texture_msaa_addr() argument 96 cl_aligned_reloc(job, &job->uniforms, uniforms, rsc->bo, 0); in write_texture_msaa_addr() [all …]
|
/external/deqp/modules/glshared/ |
D | glsLongStressTestUtil.cpp | 166 context.uniforms.push_back(gls::VarSpec("u_sampler", 0)); in generateTextureContext() 167 …context.uniforms.push_back(gls::VarSpec("u_posTrans", translationMat<4>(positionFactor-1.0f), tr… in generateTextureContext() 237 context.uniforms.push_back(gls::VarSpec("u_sampler" + de::toString(i), i)); in generateBufferAndTextureContext() 388 …context.uniforms.push_back(gls::VarSpec("u_material${NS}.ambientColor", Vec3(0.0f), Vec3(1.… in generateFragmentPointLightContext() 389 …context.uniforms.push_back(gls::VarSpec("u_material${NS}.diffuseColor", Vec4(0.0f), Vec4(1.… in generateFragmentPointLightContext() 390 …context.uniforms.push_back(gls::VarSpec("u_material${NS}.emissiveColor", Vec3(0.0f), Vec3(1.… in generateFragmentPointLightContext() 391 …context.uniforms.push_back(gls::VarSpec("u_material${NS}.specularColor", Vec3(0.0f), Vec3(1.… in generateFragmentPointLightContext() 392 context.uniforms.push_back(gls::VarSpec("u_material${NS}.shininess", 0.0f, 1.0f)); in generateFragmentPointLightContext() 394 context.uniforms.push_back(gls::VarSpec("u_light${NS}[0].color", Vec3(0.0f), Vec3(1.0f))); in generateFragmentPointLightContext() 395 …context.uniforms.push_back(gls::VarSpec("u_light${NS}[0].position", Vec4(-1.0f), Vec4(1.0f)… in generateFragmentPointLightContext() [all …]
|
/external/mesa3d/src/gallium/drivers/v3d/ |
D | v3d_uniforms.c | 108 struct v3d_cl_out **uniforms, in write_texture_p0() argument 116 cl_aligned_u32(uniforms, shader_data | sampler->p0); in write_texture_p0() 122 struct v3d_cl_out **uniforms, in write_texture_p1() argument 144 cl_aligned_u32(uniforms, p1 | packed | sview->p1); in write_texture_p1() 150 struct v3d_cl_out **uniforms, in write_tmu_p0() argument 159 cl_aligned_reloc(&job->indirect, uniforms, sview->bo, in write_tmu_p0() 166 struct v3d_cl_out **uniforms, in write_image_tmu_p0() argument 179 cl_aligned_reloc(&job->indirect, uniforms, in write_image_tmu_p0() 188 struct v3d_cl_out **uniforms, in write_tmu_p1() argument 202 cl_aligned_reloc(&job->indirect, uniforms, in write_tmu_p1() [all …]
|
/external/swiftshader/src/Renderer/ |
D | TextureStage.cpp | 100 …uniforms.constantColor4[0][0] = uniforms.constantColor4[0][1] = uniforms.constantColor4[0][2] = un… in setConstantColor() 101 …uniforms.constantColor4[1][0] = uniforms.constantColor4[1][1] = uniforms.constantColor4[1][2] = un… in setConstantColor() 102 …uniforms.constantColor4[2][0] = uniforms.constantColor4[2][1] = uniforms.constantColor4[2][2] = un… in setConstantColor() 103 …uniforms.constantColor4[3][0] = uniforms.constantColor4[3][1] = uniforms.constantColor4[3][2] = un… in setConstantColor() 108 uniforms.bumpmapMatrix4F[element / 2][element % 2][0] = value; in setBumpmapMatrix() 109 uniforms.bumpmapMatrix4F[element / 2][element % 2][1] = value; in setBumpmapMatrix() 110 uniforms.bumpmapMatrix4F[element / 2][element % 2][2] = value; in setBumpmapMatrix() 111 uniforms.bumpmapMatrix4F[element / 2][element % 2][3] = value; in setBumpmapMatrix() 113 uniforms.bumpmapMatrix4W[element / 2][element % 2][0] = iround(4095 * value); in setBumpmapMatrix() 114 uniforms.bumpmapMatrix4W[element / 2][element % 2][1] = iround(4095 * value); in setBumpmapMatrix() [all …]
|
/external/mesa3d/src/gallium/drivers/etnaviv/ |
D | etnaviv_disk_cache.c | 105 blob_copy_bytes(blob, &v->uniforms.imm_count, sizeof(v->uniforms.imm_count)); in retrieve_variant() 106 v->uniforms.imm_contents = malloc(v->uniforms.imm_count * sizeof(v->uniforms.imm_contents)); in retrieve_variant() 107 v->uniforms.imm_data = malloc(v->uniforms.imm_count * sizeof(v->uniforms.imm_data)); in retrieve_variant() 109 …blob_copy_bytes(blob, v->uniforms.imm_contents, v->uniforms.imm_count * sizeof(v->uniforms.imm_con… in retrieve_variant() 110 … blob_copy_bytes(blob, v->uniforms.imm_data, v->uniforms.imm_count * sizeof(v->uniforms.imm_data)); in retrieve_variant() 116 const uint32_t imm_count = v->uniforms.imm_count; in store_variant() 121 blob_write_bytes(blob, &v->uniforms.imm_count, sizeof(v->uniforms.imm_count)); in store_variant() 122 blob_write_bytes(blob, v->uniforms.imm_contents, imm_count * sizeof(v->uniforms.imm_contents)); in store_variant() 123 blob_write_bytes(blob, v->uniforms.imm_data, imm_count * sizeof(v->uniforms.imm_data)); in store_variant()
|
/external/deqp/external/openglcts/modules/gles31/ |
D | es31cExplicitUniformLocationTest.cpp | 948 …static void streamUniformDefinitions(const std::vector<Uniform>& uniforms, GLenum shader, std::ost… in streamUniformDefinitions() argument 950 for (size_t i = 0; i < uniforms.size(); i++) in streamUniformDefinitions() 952 if (uniforms[i].declOccurence.occurs(shader)) in streamUniformDefinitions() 954 if (uniforms[i].type.isStruct()) in streamUniformDefinitions() 956 ret << "struct " << uniforms[i].type.str() << " {" << std::endl; in streamUniformDefinitions() 957 for (size_t child = 0; child < uniforms[i].childUniforms.size() / uniforms[i].type.arraySize; in streamUniformDefinitions() 961 uniforms[i].childUniforms[child].streamDefinition(ret); in streamUniformDefinitions() 966 uniforms[i].location.streamDefinition(ret, shader); in streamUniformDefinitions() 968 uniforms[i].streamDefinition(ret); in streamUniformDefinitions() 1075 …static void streamUniformValidators(std::ostringstream& ret, const std::vector<Uniform>& uniforms,… in streamUniformValidators() argument [all …]
|
/external/mesa3d/src/broadcom/vulkan/ |
D | v3dv_uniforms.c | 89 struct v3dv_cl_out **uniforms, in write_tmu_p0() argument 115 cl_aligned_reloc(&job->indirect, uniforms, in write_tmu_p0() 125 struct v3dv_cl_out **uniforms, in write_tmu_p1() argument 157 cl_aligned_reloc(&job->indirect, uniforms, in write_tmu_p1() 166 struct v3dv_cl_out **uniforms, in write_ubo_ssbo_uniforms() argument 199 cl_aligned_reloc(&job->indirect, uniforms, in write_ubo_ssbo_uniforms() 220 cl_aligned_u32(uniforms, descriptor->range); in write_ubo_ssbo_uniforms() 222 cl_aligned_reloc(&job->indirect, uniforms, in write_ubo_ssbo_uniforms() 327 &p_stage->current_variant->prog_data.base->uniforms; in v3dv_write_uniforms_wg_offsets() 346 struct v3dv_cl_out *uniforms = cl_start(&job->indirect); in v3dv_write_uniforms_wg_offsets() local [all …]
|
/external/skia/src/core/ |
D | SkRuntimeEffect.cpp | 206 std::vector<Uniform> uniforms; in Make() local 257 uniforms.push_back(uni); in Make() 268 std::move(uniforms), in Make() 368 std::vector<Uniform>&& uniforms, in SkRuntimeEffect() argument 376 , fUniforms(std::move(uniforms)) in SkRuntimeEffect() 501 sk_sp<SkData> uniforms = nullptr; in get_xformed_uniforms() local 503 if (!uniforms) { in get_xformed_uniforms() 504 uniforms = SkData::MakeWithCopy(baseUniforms->data(), baseUniforms->size()); in get_xformed_uniforms() 506 return uniforms->writable_data(); in get_xformed_uniforms() 509 for (const auto& v : effect->uniforms()) { in get_xformed_uniforms() [all …]
|
D | SkColorSpaceXformSteps.cpp | 139 skvm::Color sk_program_transfer_fn(skvm::Builder* p, skvm::Uniforms* uniforms, in sk_program_transfer_fn() argument 141 skvm::F32 G = p->uniformF(uniforms->pushF(tf.g)), in sk_program_transfer_fn() 142 A = p->uniformF(uniforms->pushF(tf.a)), in sk_program_transfer_fn() 143 B = p->uniformF(uniforms->pushF(tf.b)), in sk_program_transfer_fn() 144 C = p->uniformF(uniforms->pushF(tf.c)), in sk_program_transfer_fn() 145 D = p->uniformF(uniforms->pushF(tf.d)), in sk_program_transfer_fn() 146 E = p->uniformF(uniforms->pushF(tf.e)), in sk_program_transfer_fn() 147 F = p->uniformF(uniforms->pushF(tf.f)); in sk_program_transfer_fn() 190 skvm::Color SkColorSpaceXformSteps::program(skvm::Builder* p, skvm::Uniforms* uniforms, in program() argument 196 c = sk_program_transfer_fn(p, uniforms, srcTF, c); in program() [all …]
|
D | SkColorFilter_Matrix.cpp | 83 skvm::Uniforms* uniforms, SkArenaAlloc*) const { in onProgram() argument 92 : m * p->uniformF(uniforms->pushF(f)) + a; in onProgram() 98 : p->uniformF(uniforms->pushF(b)); in onProgram() 168 struct { SkM44 m; SkV4 b; } uniforms; in MakeMatrix() local 189 uniforms.m = SkM44{array[ 0], array[ 1], array[ 2], array[ 3], in MakeMatrix() 193 uniforms.b = SkV4{array[4], array[9], array[14], array[19]}; in MakeMatrix() 212 effect->makeColorFilter(SkData::MakeWithCopy(&uniforms,sizeof(uniforms))), in MakeMatrix()
|
D | SkVMBlitter.cpp | 112 static skvm::Coord device_coord(skvm::Builder* p, skvm::Uniforms* uniforms) { in device_coord() argument 113 skvm::I32 dx = p->uniform32(uniforms->base, offsetof(BlitterUniforms, right)) in device_coord() 115 dy = p->uniform32(uniforms->base, offsetof(BlitterUniforms, y)); in device_coord() 124 skvm::Uniforms* uniforms, SkArenaAlloc* alloc, bool* ok) { in cache_key() argument 126 skvm::Uniform r = uniforms->pushF(params.paint.fR), in cache_key() 127 g = uniforms->pushF(params.paint.fG), in cache_key() 128 b = uniforms->pushF(params.paint.fB), in cache_key() 129 a = uniforms->pushF(params.paint.fA); in cache_key() 134 skvm::Coord device = device_coord(&p, uniforms); in cache_key() 146 params.dst, uniforms,alloc)) { in cache_key() [all …]
|
D | SkColorFilter.cpp | 68 skvm::Uniforms* uniforms, SkArenaAlloc* alloc) const { in program() argument 70 if ((c = this->onProgram(p,c, dstCS, uniforms,alloc))) { in program() 154 skvm::Uniforms* uniforms, SkArenaAlloc* alloc) const override { in onProgram() argument 155 c = fInner->program(p, c, dstCS, uniforms, alloc); in onProgram() 156 return c ? fOuter->program(p, c, dstCS, uniforms, alloc) : skvm::Color{}; in onProgram() 275 skvm::Uniforms* uniforms, SkArenaAlloc* alloc) const override { in onProgram() argument 276 return premul(fSteps.program(p, uniforms, unpremul(c))); in onProgram() 368 skvm::Uniforms* uniforms, SkArenaAlloc* alloc) const override { in onProgram() 378 c = SkColorSpaceXformSteps{dst,working}.program(p, uniforms, c); in onProgram() 379 c = as_CFB(fChild)->program(p, c, working.colorSpace(), uniforms, alloc); in onProgram() [all …]
|
/external/mesa3d/src/compiler/glsl/ |
D | link_atomics.cpp | 48 : uniforms(0), num_uniforms(0), stage_counter_references(), size(0) in active_atomic_buffer() 53 free(uniforms); in ~active_atomic_buffer() 61 realloc(uniforms, sizeof(active_atomic_counter_uniform) * in push_back() 69 uniforms = new_uniforms; in push_back() 70 uniforms[num_uniforms].uniform_loc = uniform_loc; in push_back() 71 uniforms[num_uniforms].var = var; in push_back() 75 active_atomic_counter_uniform *uniforms; member 180 qsort(buffers[i].uniforms, buffers[i].num_uniforms, in find_active_atomic_counters() 188 if (check_atomic_counters_overlap(buffers[i].uniforms[j-1].var, in find_active_atomic_counters() 189 buffers[i].uniforms[j].var) in find_active_atomic_counters() [all …]
|
D | link_uniforms.cpp | 685 struct gl_uniform_storage *uniforms, in parcel_out_uniform_storage() argument 688 : prog(prog), map(map), uniforms(uniforms), in parcel_out_uniform_storage() 1051 this->uniforms[id].array_elements = type->length; in visit_field() 1054 this->uniforms[id].array_elements = 0; in visit_field() 1059 this->uniforms[id].opaque[shader_type].index = ~0; in visit_field() 1060 this->uniforms[id].opaque[shader_type].active = false; in visit_field() 1063 this->uniforms[id].active_shader_mask |= 1 << shader_type; in visit_field() 1066 handle_samplers(base_type, &this->uniforms[id], name); in visit_field() 1067 handle_images(base_type, &this->uniforms[id], name); in visit_field() 1068 handle_subroutines(base_type, &this->uniforms[id]); in visit_field() [all …]
|
D | gl_nir_link_atomics.c | 41 struct active_atomic_counter_uniform *uniforms; member 59 buffer->uniforms = reralloc(ctx, in add_atomic_counter() 60 buffer->uniforms, in add_atomic_counter() 66 buffer->uniforms + buffer->num_uniforms; in add_atomic_counter() 228 nir_variable *var = ab->uniforms[j].var; in gl_nir_link_assign_atomic_counter_resources() 230 &prog->data->UniformStorage[ab->uniforms[j].loc]; in gl_nir_link_assign_atomic_counter_resources() 232 mab->Uniforms[j] = ab->uniforms[j].loc; in gl_nir_link_assign_atomic_counter_resources() 324 qsort(abs[i].uniforms, abs[i].num_uniforms, in gl_nir_link_check_atomic_counter_resources() 332 if (check_atomic_counters_overlap(abs[i].uniforms[j-1].var, in gl_nir_link_check_atomic_counter_resources() 333 abs[i].uniforms[j].var) in gl_nir_link_check_atomic_counter_resources() [all …]
|
/external/angle/src/compiler/translator/tree_ops/vulkan/ |
D | FlagSamplersWithTexelFetch.cpp | 29 std::vector<ShaderVariable> *uniforms) in FlagSamplersWithTexelFetchTraverser() argument 30 : TIntermTraverser(true, true, true, symbolTable), mUniforms(uniforms) in FlagSamplersWithTexelFetchTraverser() 79 std::vector<ShaderVariable> *uniforms) in FlagSamplersForTexelFetch() argument 81 ASSERT(uniforms != nullptr); in FlagSamplersForTexelFetch() 82 if (uniforms->size() > 0) in FlagSamplersForTexelFetch() 84 FlagSamplersWithTexelFetchTraverser traverser(symbolTable, uniforms); in FlagSamplersForTexelFetch()
|
/external/skia/src/shaders/ |
D | SkShader.cpp | 202 skvm::Uniforms* uniforms, SkArenaAlloc* alloc) const { in program() argument 222 uniforms,alloc)) { in program() 238 skvm::Coord coord, skvm::Uniforms* uniforms) { in ApplyMatrix() argument 244 x = p->add(x, p->uniformF(uniforms->pushF(m[2]))); in ApplyMatrix() 245 y = p->add(y, p->uniformF(uniforms->pushF(m[5]))); in ApplyMatrix() 247 x = p->mad(x, p->uniformF(uniforms->pushF(m[0])), p->uniformF(uniforms->pushF(m[2]))); in ApplyMatrix() 248 y = p->mad(y, p->uniformF(uniforms->pushF(m[4])), p->uniformF(uniforms->pushF(m[5]))); in ApplyMatrix() 251 return p->mad(x, p->uniformF(uniforms->pushF(m[3*row+0])), in ApplyMatrix() 252 p->mad(y, p->uniformF(uniforms->pushF(m[3*row+1])), in ApplyMatrix() 253 p->uniformF(uniforms->pushF(m[3*row+2])))); in ApplyMatrix()
|
D | SkColorFilterShader.cpp | 69 skvm::Uniforms* uniforms, SkArenaAlloc* alloc) const { in onProgram() argument 73 uniforms,alloc); in onProgram() 79 skvm::F32 A = p->uniformF(uniforms->pushF(fAlpha)); in onProgram() 87 return fFilter->program(p,c, dst.colorSpace(), uniforms,alloc); in onProgram()
|
/external/exoplayer/tree/demos/gl/src/main/java/com/google/android/exoplayer2/gldemo/ |
D | BitmapOverlayVideoProcessor.java | 56 @Nullable private GlUtil.Uniform[] uniforms; field in BitmapOverlayVideoProcessor 88 GlUtil.Uniform[] uniforms = GlUtil.getUniforms(program); in initialize() local 106 this.uniforms = uniforms; in initialize() 135 GlUtil.Uniform[] uniforms = Assertions.checkNotNull(this.uniforms); in draw() local 138 for (GlUtil.Uniform uniform : uniforms) { in draw() 157 for (GlUtil.Uniform copyExternalUniform : uniforms) { in draw()
|
/external/skia/modules/particles/src/ |
D | SkParticleBinding.cpp | 52 skvm::Uniforms* uniforms, in SkPathExternalFunction() argument 55 name, compiler, *compiler.context().fTypes.fFloat4, uniforms, alloc) in SkPathExternalFunction() 100 skvm::Uniforms* uniforms, in toFunction() argument 102 return std::make_unique<SkPathExternalFunction>(fName.c_str(), compiler, fData, uniforms, in toFunction() 139 skvm::Uniforms* uniforms, in toFunction() argument 141 return std::make_unique<SkPathExternalFunction>(fName.c_str(), compiler, fData, uniforms, in toFunction() 170 skvm::Uniforms* uniforms, in SkShaderExternalFunction() argument 173 name, compiler, *compiler.context().fTypes.fFloat4, uniforms, alloc) in SkShaderExternalFunction() 221 skvm::Uniforms* uniforms, in toFunction() argument 224 uniforms, alloc); in toFunction()
|
/external/skia/src/gpu/d3d/ |
D | GrD3DPipelineStateDataManager.cpp | 13 GrD3DPipelineStateDataManager::GrD3DPipelineStateDataManager(const UniformInfoArray& uniforms, in GrD3DPipelineStateDataManager() argument 15 : INHERITED(uniforms.count(), uniformSize) { in GrD3DPipelineStateDataManager() 19 for (const auto& uniformInfo : uniforms.items()) { in GrD3DPipelineStateDataManager()
|
/external/skia/src/effects/ |
D | SkHighContrastFilter.cpp | 54 Uniforms uniforms = { in Make() local 63 effect->makeColorFilter(SkData::MakeWithCopy(&uniforms,sizeof(uniforms))), in Make()
|
/external/angle/src/compiler/translator/tree_ops/ |
D | RemoveInactiveInterfaceVariables.cpp | 31 const std::vector<sh::ShaderVariable> &uniforms, 49 const std::vector<sh::ShaderVariable> &uniforms, in RemoveInactiveInterfaceVariablesTraverser() argument 55 mUniforms(uniforms), in RemoveInactiveInterfaceVariablesTraverser() 161 const std::vector<sh::ShaderVariable> &uniforms, in RemoveInactiveInterfaceVariables() argument 165 outputVariables, uniforms, interfaceBlocks); in RemoveInactiveInterfaceVariables()
|
/external/skia/include/effects/ |
D | SkRuntimeEffect.h | 134 sk_sp<SkShader> makeShader(sk_sp<SkData> uniforms, 141 sk_sp<SkData> uniforms, 148 sk_sp<SkColorFilter> makeColorFilter(sk_sp<SkData> uniforms) const; 149 sk_sp<SkColorFilter> makeColorFilter(sk_sp<SkData> uniforms, 174 ConstIterable<Uniform> uniforms() const { return ConstIterable<Uniform>(fUniforms); } in uniforms() function 188 std::unique_ptr<GrFragmentProcessor> makeFP(sk_sp<SkData> uniforms, 204 std::vector<Uniform>&& uniforms, 348 sk_sp<SkData> uniforms() { return fUniforms; } in uniforms() function
|
/external/deqp/framework/randomshaders/ |
D | rsgUtils.cpp | 36 void addNewUniforms (vector<const ShaderInput*>& uniforms, set<string>& addedUniforms, const Shader… in addNewUniforms() argument 45 uniforms.push_back(uniform); in addNewUniforms() 50 …onst Shader& vertexShader, const Shader& fragmentShader, std::vector<const ShaderInput*>& uniforms) in computeUnifiedUniforms() argument 53 addNewUniforms(uniforms, addedUniforms, vertexShader); in computeUnifiedUniforms() 54 addNewUniforms(uniforms, addedUniforms, fragmentShader); in computeUnifiedUniforms() 114 …::Random& rnd, std::vector<VariableValue>& values, const std::vector<const ShaderInput*>& uniforms) in computeUniformValues() argument 117 for (vector<const ShaderInput*>::const_iterator i = uniforms.begin(); i != uniforms.end(); i++) in computeUniformValues()
|