Home
last modified time | relevance | path

Searched refs:tess_coord (Results 1 – 13 of 13) sorted by relevance

/third_party/skia/third_party/externals/spirv-cross/shaders/tese/
Dwater_tess.tese24 vec2 lerp_vertex(vec2 tess_coord)
26 return vOutPatchPosBase + tess_coord * uPatchSize;
29 mediump vec2 lod_factor(vec2 tess_coord)
31 mediump vec2 x = mix(vPatchLods.yx, vPatchLods.zw, tess_coord.x);
32 mediump float level = mix(x.x, x.y, tess_coord.y);
48 vec2 tess_coord = gl_TessCoord.xy;
49 vec2 pos = lerp_vertex(tess_coord);
50 mediump vec2 lod = lod_factor(tess_coord);
/third_party/skia/third_party/externals/spirv-cross/shaders-msl/tese/
Dwater_tess.tese24 vec2 lerp_vertex(vec2 tess_coord)
26 return vOutPatchPosBase + tess_coord * uPatchSize;
29 mediump vec2 lod_factor(vec2 tess_coord)
31 mediump vec2 x = mix(vPatchLods.yx, vPatchLods.zw, tess_coord.x);
32 mediump float level = mix(x.x, x.y, tess_coord.y);
48 vec2 tess_coord = gl_TessCoord.xy;
49 vec2 pos = lerp_vertex(tess_coord);
50 mediump vec2 lod = lod_factor(tess_coord);
/third_party/skia/third_party/externals/spirv-cross/reference/shaders/tese/
Dwater_tess.tese22 vec2 lerp_vertex(vec2 tess_coord)
24 return vOutPatchPosBase + (tess_coord * _31.uPatchSize);
27 mediump vec2 lod_factor(vec2 tess_coord)
29 mediump vec2 x = mix(vPatchLods.yx, vPatchLods.zw, vec2(tess_coord.x));
30 mediump float level = mix(x.x, x.y, tess_coord.y);
43 vec2 tess_coord = gl_TessCoord.xy;
44 vec2 param = tess_coord;
46 vec2 param_1 = tess_coord;
/third_party/skia/third_party/externals/spirv-cross/reference/shaders-msl/tese/
Dwater_tess.tese32 float2 lerp_vertex(thread const float2& tess_coord, thread float2& vOutPatchPosBase, constant UBO& …
34 return vOutPatchPosBase + (tess_coord * v_31.uPatchSize);
38 float2 lod_factor(thread const float2& tess_coord, thread float4& vPatchLods)
40 float2 x = mix(vPatchLods.yx, vPatchLods.zw, float2(tess_coord.x));
41 float level0 = mix(x.x, x.y, tess_coord.y);
56 float2 tess_coord = float3(gl_TessCoord, 0).xy;
57 float2 param = tess_coord;
59 float2 param_1 = tess_coord;
/third_party/mesa3d/src/freedreno/ir3/
Dir3_context.h100 struct ir3_instruction *tess_coord; member
Dir3_compiler_nir.c1716 if (!ctx->tess_coord) { in emit_intrinsic()
1717 ctx->tess_coord = in emit_intrinsic()
1720 ir3_split_dest(b, dst, ctx->tess_coord, 0, 2); in emit_intrinsic()
/third_party/mesa3d/src/gallium/auxiliary/draw/
Ddraw_llvm.c3921 LLVMValueRef tess_coord[2], io_ptr, input_array, num_tess_coord; in draw_tes_llvm_generate() local
3976 tess_coord[0] = LLVMGetParam(variant_func, 5); in draw_tes_llvm_generate()
3977 tess_coord[1] = LLVMGetParam(variant_func, 6); in draw_tes_llvm_generate()
3988 lp_build_name(tess_coord[0], "tess_coord[0]"); in draw_tes_llvm_generate()
3989 lp_build_name(tess_coord[1], "tess_coord[1]"); in draw_tes_llvm_generate()
4051 …system_values.tess_coord = LLVMGetUndef(LLVMArrayType(LLVMVectorType(flt_type, vector_length), 3)); in draw_tes_llvm_generate()
4060 … tc_val = LLVMBuildFSub(builder, tc_val, lp_build_pointer_get(builder, tess_coord[0], idx), ""); in draw_tes_llvm_generate()
4061 … tc_val = LLVMBuildFSub(builder, tc_val, lp_build_pointer_get(builder, tess_coord[1], idx), ""); in draw_tes_llvm_generate()
4065 tc_val = lp_build_pointer_get(builder, tess_coord[i], idx); in draw_tes_llvm_generate()
4069 …system_values.tess_coord = LLVMBuildInsertValue(builder, system_values.tess_coord, tess_coord_chan… in draw_tes_llvm_generate()
/third_party/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_tgsi.h183 LLVMValueRef tess_coord; member
Dlp_bld_nir_soa.c1609 result[i] = LLVMBuildExtractValue(gallivm->builder, bld->system_values.tess_coord, i, ""); in emit_sysval_intrin()
Dlp_bld_tgsi_soa.c1549 …LLVMValueRef array_indexed = LLVMBuildGEP(gallivm->builder, bld->system_values.tess_coord, index, … in emit_fetch_system_value()
/third_party/mesa3d/src/gallium/drivers/swr/
Dswr_shader.cpp1824 Value* tess_coord = ALLOCA(ArrayType::get(mSimdFP32Ty, 3)); in CompileTES() local
1827 STORE(tessCoordU, tess_coord, {0, 0}); in CompileTES()
1829 STORE(tessCoordV, tess_coord, {0, 1}); in CompileTES()
1831 STORE(tessCoordW, tess_coord, {0, 2}); in CompileTES()
1832 system_values.tess_coord = wrap(tess_coord); in CompileTES()
1859 lp_build_print_value(gallivm, "tess_coord = ", system_values.tess_coord); in CompileTES()
/third_party/mesa3d/src/amd/common/
Dac_nir_lower_ngg.c1085 nir_ssa_def *tess_coord = nir_build_load_tess_coord(b); in add_deferred_attribute_culling() local
1086 nir_store_var(b, repacked_arg_vars[0], nir_channel(b, tess_coord, 0), 0x1u); in add_deferred_attribute_culling()
1087 nir_store_var(b, repacked_arg_vars[1], nir_channel(b, tess_coord, 1), 0x1u); in add_deferred_attribute_culling()
/third_party/mesa3d/src/amd/compiler/
Daco_instruction_selection.cpp5353 Temp tess_coord = bld.pseudo(aco_opcode::p_create_vector, Definition(dst), tes_u, tes_v, tes_w); in visit_load_tess_coord() local
5354 emit_split_vector(ctx, tess_coord, 3); in visit_load_tess_coord()