/third_party/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 …]
|
/third_party/vk-gl-cts/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 …]
|
/third_party/mesa3d/src/gallium/drivers/v3d/ |
D | v3d_uniforms.c | 126 struct v3d_cl_out **uniforms, in write_texture_p0() argument 134 cl_aligned_u32(uniforms, shader_data | sampler->p0); in write_texture_p0() 140 struct v3d_cl_out **uniforms, in write_texture_p1() argument 162 cl_aligned_u32(uniforms, p1 | packed | sview->p1); in write_texture_p1() 168 struct v3d_cl_out **uniforms, in write_tmu_p0() argument 191 cl_aligned_reloc(&job->indirect, uniforms, sview->bo, in write_tmu_p0() 198 struct v3d_cl_out **uniforms, in write_image_tmu_p0() argument 211 cl_aligned_reloc(&job->indirect, uniforms, in write_image_tmu_p0() 220 struct v3d_cl_out **uniforms, in write_tmu_p1() argument 243 cl_aligned_reloc(&job->indirect, uniforms, in write_tmu_p1() [all …]
|
/third_party/skia/third_party/externals/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 …]
|
/third_party/mesa3d/src/gallium/drivers/etnaviv/ |
D | etnaviv_disk_cache.c | 102 blob_copy_bytes(blob, &v->uniforms.count, sizeof(v->uniforms.count)); in retrieve_variant() 103 v->uniforms.contents = malloc(v->uniforms.count * sizeof(v->uniforms.contents)); in retrieve_variant() 104 v->uniforms.data = malloc(v->uniforms.count * sizeof(v->uniforms.data)); in retrieve_variant() 106 blob_copy_bytes(blob, v->uniforms.contents, v->uniforms.count * sizeof(v->uniforms.contents)); in retrieve_variant() 107 blob_copy_bytes(blob, v->uniforms.data, v->uniforms.count * sizeof(v->uniforms.data)); in retrieve_variant() 113 const uint32_t imm_count = v->uniforms.count; in store_variant() 118 blob_write_bytes(blob, &v->uniforms.count, sizeof(v->uniforms.count)); in store_variant() 119 blob_write_bytes(blob, v->uniforms.contents, imm_count * sizeof(v->uniforms.contents)); in store_variant() 120 blob_write_bytes(blob, v->uniforms.data, imm_count * sizeof(v->uniforms.data)); in store_variant()
|
/third_party/vk-gl-cts/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 …]
|
/third_party/skia/third_party/externals/tint/test/bug/tint/ |
D | 1113.wgsl.expected.glsl | 12 } uniforms; 41 vec3 bbMin = vec3(uniforms.bbMin.x, uniforms.bbMin.y, uniforms.bbMin.z); 42 vec3 bbMax = vec3(uniforms.bbMax.x, uniforms.bbMax.y, uniforms.bbMax.z); 45 float gridSize = float(uniforms.gridSize); 46 float gx = ((gridSize * (position.x - uniforms.bbMin.x)) / cubeSize); 47 float gy = ((gridSize * (position.y - uniforms.bbMin.y)) / cubeSize); 48 float gz = ((gridSize * (position.z - uniforms.bbMin.z)) / cubeSize); 63 uint g42 = uniforms.numTriangles; 77 if ((triangleIndex >= uniforms.numTriangles)) { 89 uint voxelIndex = toIndex1D(uniforms.gridSize, voxelPos); [all …]
|
D | 1113.wgsl.expected.wgsl | 52 [[binding(0), group(0)]] var<uniform> uniforms : Uniforms; 65 var bbMin = vec3<f32>(uniforms.bbMin.x, uniforms.bbMin.y, uniforms.bbMin.z); 66 var bbMax = vec3<f32>(uniforms.bbMax.x, uniforms.bbMax.y, uniforms.bbMax.z); 69 var gridSize = f32(uniforms.gridSize); 70 var gx = ((gridSize * (position.x - uniforms.bbMin.x)) / cubeSize); 71 var gy = ((gridSize * (position.y - uniforms.bbMin.y)) / cubeSize); 72 var gz = ((gridSize * (position.z - uniforms.bbMin.z)) / cubeSize); 94 var g42 = uniforms.numTriangles; 105 if ((triangleIndex >= uniforms.numTriangles)) { 117 var voxelIndex = toIndex1D(uniforms.gridSize, voxelPos); [all …]
|
D | 1113.wgsl.expected.hlsl | 31 uint4 uniforms[3]; 40 float3 bbMin = float3(asfloat(uniforms[1].x), asfloat(uniforms[1].y), asfloat(uniforms[1].z)); 41 float3 bbMax = float3(asfloat(uniforms[2].x), asfloat(uniforms[2].y), asfloat(uniforms[2].z)); 44 float gridSize = float(uniforms[0].y); 45 float gx = ((gridSize * (position.x - asfloat(uniforms[1].x))) / cubeSize); 46 float gy = ((gridSize * (position.y - asfloat(uniforms[1].y))) / cubeSize); 47 float gz = ((gridSize * (position.z - asfloat(uniforms[1].z))) / cubeSize); 69 uint g42 = uniforms[0].x; 83 if ((triangleIndex >= uniforms[0].x)) { 95 uint voxelIndex = toIndex1D(uniforms[0].y, voxelPos); [all …]
|
D | 1113.wgsl | 33 [[binding(0), group(0)]] var<uniform> uniforms : Uniforms; 46 var bbMin = vec3<f32>(uniforms.bbMin.x, uniforms.bbMin.y, uniforms.bbMin.z); 47 var bbMax = vec3<f32>(uniforms.bbMax.x, uniforms.bbMax.y, uniforms.bbMax.z); 50 var gridSize = f32(uniforms.gridSize); 52 var gx = gridSize * (position.x - uniforms.bbMin.x) / cubeSize; 53 var gy = gridSize * (position.y - uniforms.bbMin.y) / cubeSize; 54 var gz = gridSize * (position.z - uniforms.bbMin.z) / cubeSize; 89 var g42 = uniforms.numTriangles; 103 if(triangleIndex >= uniforms.numTriangles){ 119 var voxelIndex = toIndex1D(uniforms.gridSize, voxelPos); [all …]
|
D | 913.wgsl.expected.wgsl | 21 [[group(0), binding(3)]] var<uniform> uniforms : Uniforms; 34 …uniforms.dstCopyOrigin.x) || (dstTexCoord.y < uniforms.dstCopyOrigin.y)) || (dstTexCoord.x >= (uni… 37 var srcTexCoord : vec2<u32> = ((dstTexCoord - uniforms.dstCopyOrigin) + uniforms.srcCopyOrigin); 38 if ((uniforms.dstTextureFlipY == 1u)) { 43 if ((uniforms.channelCount == 2u)) {
|
D | 913.wgsl.expected.glsl | 16 } uniforms; 32 bool tint_tmp_2 = (dstTexCoord.x < uniforms.dstCopyOrigin.x); 34 tint_tmp_2 = (dstTexCoord.y < uniforms.dstCopyOrigin.y); 38 tint_tmp_1 = (dstTexCoord.x >= (uniforms.dstCopyOrigin.x + uniforms.copySize.x)); 42 tint_tmp = (dstTexCoord.y >= (uniforms.dstCopyOrigin.y + uniforms.copySize.y)); 51 uvec2 srcTexCoord = ((dstTexCoord - uniforms.dstCopyOrigin) + uniforms.srcCopyOrigin); 52 if ((uniforms.dstTextureFlipY == 1u)) { 57 if ((uniforms.channelCount == 2u)) {
|
D | 913.wgsl.expected.hlsl | 5 uint4 uniforms[2]; 26 bool tint_tmp_4 = (dstTexCoord.x < uniforms[1].x); 28 tint_tmp_4 = (dstTexCoord.y < uniforms[1].y); 32 tint_tmp_3 = (dstTexCoord.x >= (uniforms[1].x + uniforms[1].z)); 36 tint_tmp_2 = (dstTexCoord.y >= (uniforms[1].y + uniforms[1].w)); 45 uint2 srcTexCoord = ((dstTexCoord - uniforms[1].xy) + uniforms[0].zw); 46 if ((uniforms[0].x == 1u)) { 51 if ((uniforms[0].y == 2u)) {
|
D | 913.wgsl | 14 [[group(0), binding(3)]] var<uniform> uniforms : Uniforms; 28 if (dstTexCoord.x < uniforms.dstCopyOrigin.x || 29 dstTexCoord.y < uniforms.dstCopyOrigin.y || 30 dstTexCoord.x >= uniforms.dstCopyOrigin.x + uniforms.copySize.x || 31 dstTexCoord.y >= uniforms.dstCopyOrigin.y + uniforms.copySize.y) { 36 var srcTexCoord : vec2<u32> = dstTexCoord - uniforms.dstCopyOrigin + 37 uniforms.srcCopyOrigin; 42 if (uniforms.dstTextureFlipY == 1u) { 51 if (uniforms.channelCount == 2u) { // All have rg components.
|
D | 913.wgsl.expected.spvasm | 24 OpName %uniforms "uniforms" 49 OpDecorate %uniforms NonWritable 50 OpDecorate %uniforms DescriptorSet 0 51 OpDecorate %uniforms Binding 3 68 %uniforms = OpVariable %_ptr_Uniform_Uniforms Uniform 118 %55 = OpAccessChain %_ptr_Uniform_uint %uniforms %uint_3 %uint_0 125 %62 = OpAccessChain %_ptr_Uniform_uint %uniforms %uint_3 %uint_1 135 %69 = OpAccessChain %_ptr_Uniform_uint %uniforms %uint_3 %uint_0 137 %72 = OpAccessChain %_ptr_Uniform_uint %uniforms %uint_4 %uint_0 148 %80 = OpAccessChain %_ptr_Uniform_uint %uniforms %uint_3 %uint_1 [all …]
|
/third_party/mesa3d/src/broadcom/vulkan/ |
D | v3dv_uniforms.c | 157 struct v3dv_cl_out **uniforms, in write_tmu_p0() argument 182 cl_aligned_u32(uniforms, state_reloc.bo->offset + in write_tmu_p0() 201 struct v3dv_cl_out **uniforms, in write_tmu_p1() argument 233 cl_aligned_u32(uniforms, sampler_state_reloc.bo->offset + in write_tmu_p1() 251 struct v3dv_cl_out **uniforms, in write_ubo_ssbo_uniforms() argument 286 cl_aligned_u32(uniforms, resource->bo->offset + in write_ubo_ssbo_uniforms() 313 cl_aligned_u32(uniforms, descriptor->range); in write_ubo_ssbo_uniforms() 341 cl_aligned_u32(uniforms, addr); in write_ubo_ssbo_uniforms() 355 write_inline_uniform(struct v3dv_cl_out **uniforms, in write_inline_uniform() argument 378 cl_aligned_u32(uniforms, *addr); in write_inline_uniform() [all …]
|
/third_party/skia/src/core/ |
D | SkRuntimeEffect.cpp | 195 skvm::Uniforms* uniforms, in make_skvm_uniforms() argument 207 uniform.push_back(p->uniform32(uniforms->push(bits)).id); in make_skvm_uniforms() 307 std::vector<Uniform> uniforms; in MakeInternal() local 365 uniforms.push_back(uni); in MakeInternal() 383 std::move(uniforms), in MakeInternal() 511 std::vector<Uniform>&& uniforms, in SkRuntimeEffect() argument 518 , fUniforms(std::move(uniforms)) in SkRuntimeEffect() 742 sk_sp<SkData> uniforms = nullptr; in get_xformed_uniforms() local 744 if (!uniforms) { in get_xformed_uniforms() 745 uniforms = SkData::MakeWithCopy(baseUniforms->data(), baseUniforms->size()); in get_xformed_uniforms() [all …]
|
/third_party/skia/third_party/externals/tint/test/bug/chromium/ |
D | 1273230.wgsl | 65 [[binding(0), group(0)]] var<uniform> uniforms : Uniforms; 78 var bbMin = vec3<f32>(uniforms.bbMin.x, uniforms.bbMin.y, uniforms.bbMin.z); 79 var bbMax = vec3<f32>(uniforms.bbMax.x, uniforms.bbMax.y, uniforms.bbMax.z); 82 var gridSize = f32(uniforms.gridSize); 83 var gx = ((cubeSize * (position.x - uniforms.bbMin.x)) / cubeSize); 84 var gy = ((gx * (position.y - uniforms.bbMin.y)) / gridSize); 85 var gz = ((gridSize * (position.z - uniforms.bbMin.z)) / gridSize); 107 var g43 = uniforms.numTriangles; 118 if ((triangleIndex >= uniforms.numTriangles)) { 130 var lIndex = toIndex1D(uniforms.gridSize, p0);
|
D | 1273230.wgsl.expected.wgsl | 83 [[binding(0), group(0)]] var<uniform> uniforms : Uniforms; 96 var bbMin = vec3<f32>(uniforms.bbMin.x, uniforms.bbMin.y, uniforms.bbMin.z); 97 var bbMax = vec3<f32>(uniforms.bbMax.x, uniforms.bbMax.y, uniforms.bbMax.z); 100 var gridSize = f32(uniforms.gridSize); 101 var gx = ((cubeSize * (position.x - uniforms.bbMin.x)) / cubeSize); 102 var gy = ((gx * (position.y - uniforms.bbMin.y)) / gridSize); 103 var gz = ((gridSize * (position.z - uniforms.bbMin.z)) / gridSize); 125 var g43 = uniforms.numTriangles; 136 if ((triangleIndex >= uniforms.numTriangles)) { 148 var lIndex = toIndex1D(uniforms.gridSize, p0);
|
D | 1273230.wgsl.expected.hlsl | 60 uint4 uniforms[3]; 69 float3 bbMin = float3(asfloat(uniforms[1].x), asfloat(uniforms[1].y), asfloat(uniforms[1].z)); 70 float3 bbMax = float3(asfloat(uniforms[2].x), asfloat(uniforms[2].y), asfloat(uniforms[2].z)); 73 float gridSize = float(uniforms[0].y); 74 float gx = ((cubeSize * (position.x - asfloat(uniforms[1].x))) / cubeSize); 75 float gy = ((gx * (position.y - asfloat(uniforms[1].y))) / gridSize); 76 float gz = ((gridSize * (position.z - asfloat(uniforms[1].z))) / gridSize); 98 uint g43 = uniforms[0].x; 112 if ((triangleIndex >= uniforms[0].x)) { 124 uint lIndex = toIndex1D(uniforms[0].y, p0);
|
/third_party/skia/third_party/externals/tint/test/bug/fxc/matrix_assignment_dynamic_index/ |
D | module_assign_scalar_xy.wgsl.expected.spvasm | 13 OpName %uniforms "uniforms" 19 OpDecorate %uniforms NonWritable 20 OpDecorate %uniforms DescriptorSet 1 21 OpDecorate %uniforms Binding 4 25 %uniforms = OpVariable %_ptr_Uniform_Uniforms Uniform 41 %17 = OpAccessChain %_ptr_Uniform_uint %uniforms %uint_0 43 %20 = OpAccessChain %_ptr_Uniform_uint %uniforms %uint_1
|
D | local_assign_scalar_xy.wgsl.expected.spvasm | 13 OpName %uniforms "uniforms" 19 OpDecorate %uniforms NonWritable 20 OpDecorate %uniforms DescriptorSet 1 21 OpDecorate %uniforms Binding 4 25 %uniforms = OpVariable %_ptr_Uniform_Uniforms Uniform 41 %17 = OpAccessChain %_ptr_Uniform_uint %uniforms %uint_0 43 %20 = OpAccessChain %_ptr_Uniform_uint %uniforms %uint_1
|
D | local_assign_scalar_x.wgsl.expected.spvasm | 13 OpName %uniforms "uniforms" 19 OpDecorate %uniforms NonWritable 20 OpDecorate %uniforms DescriptorSet 1 21 OpDecorate %uniforms Binding 4 25 %uniforms = OpVariable %_ptr_Uniform_Uniforms Uniform 42 %17 = OpAccessChain %_ptr_Uniform_uint %uniforms %uint_0
|
/third_party/skia/experimental/graphite/src/ |
D | ContextUtils.cpp | 172 const Uniform* uniforms, in Make() argument 178 return sk_sp<UniformData>(new UniformData(count, uniforms, offsets, data, dataSize)); in Make() 183 sk_sp<UniformData> uniforms; in ExtractCombo() local 208 uniforms = make_linear_gradient_uniform_data(gradInfo.fPoint[0], in ExtractCombo() 220 uniforms = make_radial_gradient_uniform_data(gradInfo.fPoint[0], in ExtractCombo() 232 uniforms = make_sweep_gradient_uniform_data(gradInfo.fPoint[0], in ExtractCombo() 243 uniforms = make_conical_gradient_uniform_data(gradInfo.fPoint[0], in ExtractCombo() 256 uniforms = make_solid_uniform_data(p.getColor4f()); in ExtractCombo() 264 uniforms = make_solid_uniform_data(p.getColor4f()); in ExtractCombo() 269 sk_sp<UniformData> trueUD = cache->findOrCreate(std::move(uniforms)); in ExtractCombo() [all …]
|
/third_party/mesa3d/src/compiler/glsl/ |
D | gl_nir_link_atomics.c | 43 struct active_atomic_counter_uniform *uniforms; member 61 buffer->uniforms = reralloc(ctx, in add_atomic_counter() 62 buffer->uniforms, in add_atomic_counter() 68 buffer->uniforms + buffer->num_uniforms; in add_atomic_counter() 230 nir_variable *var = ab->uniforms[j].var; in gl_nir_link_assign_atomic_counter_resources() 232 &prog->data->UniformStorage[ab->uniforms[j].loc]; in gl_nir_link_assign_atomic_counter_resources() 234 mab->Uniforms[j] = ab->uniforms[j].loc; in gl_nir_link_assign_atomic_counter_resources() 326 qsort(abs[i].uniforms, abs[i].num_uniforms, in gl_nir_link_check_atomic_counter_resources() 334 if (check_atomic_counters_overlap(abs[i].uniforms[j-1].var, in gl_nir_link_check_atomic_counter_resources() 335 abs[i].uniforms[j].var) in gl_nir_link_check_atomic_counter_resources() [all …]
|