Lines Matching refs:dsts
1673 #define emit_arit_op2(op) snprintf(buf, 255, "%s = %s(%s((%s %s %s))%s);\n", dsts[0], get_string(di…
1674 #define emit_op1(op) snprintf(buf, 255, "%s = %s(%s(%s(%s))%s);\n", dsts[0], get_string(dinfo.dstco…
1675 #define emit_compare(op) snprintf(buf, 255, "%s = %s(%s((%s(%s(%s), %s(%s))))%s);\n", dsts[0], get_…
1677 …"%s = %s(uintBitsToFloat(%s(%s(%s(%s), %s(%s))%s) * %s(0xffffffff)));\n", dsts[0], get_string(dinf…
1803 char dsts[3][255], in emit_txq()
1834 …snprintf(buf, 255, "%s%s = %s(textureQueryLevels(%s));\n", dsts[0], get_wm_string(twm), get_string… in emit_txq()
1869 …snprintf(buf, 255, "%s%s = %s(textureSize(%s%s))%s;\n", dsts[0], get_wm_string(twm), get_string(dt… in emit_txq()
1880 char dsts[3][255]) in emit_txqs()
1895 snprintf(buf, 255, "%s = %s(textureSamples(%s));\n", dsts[0], in emit_txqs()
2058 char dsts[3][255], in translate_tex()
2260 …snprintf(buf, 255, "%s = %s(%s(texelFetch%s(%s, %s(%s%s)%s%s)%s));\n", dsts[0], get_string(dinfo->… in translate_tex()
2264 …snprintf(buf, 255, "%s = texture2DRect(%s, %s.xy)%s;\n", dsts[0], srcs[sampler_index], srcs[0], wr… in translate_tex()
2266 …snprintf(buf, 255, "%s = shadow2DRect(%s, %s.xyz)%s;\n", dsts[0], srcs[sampler_index], srcs[0], wr… in translate_tex()
2270 …vec4(vec4(texture%s(%s, %s%s%s%s)) * %sshadmask%d + %sshadadd%d)%s));\n", dsts[0], get_string(dinf… in translate_tex()
2276 …snprintf(buf, 255, "%s = %s(%s(texture2D(%s, vec2(%s%s%s%s, 0.5))%s));\n", dsts[0], get_string(din… in translate_tex()
2278 …snprintf(buf, 255, "%s = %s(%s(texture%s(%s, %s%s%s%s)%s));\n", dsts[0], get_string(dinfo->dstconv… in translate_tex()
2377 char dsts[3][255]) in translate_store()
2403 snprintf(buf, 512, "imageStore(%s,%s(%s(%s)),%s%s(%s));\n", dsts[0], get_string(coord_prefix), in translate_store()
2411 …snprintf(buf, 255, "%s[uint(floatBitsToUint(%s))>>2] = %s(%s).x;\n", dsts[0], srcs[0], conversion,… in translate_store()
2415 …snprintf(buf, 255, "%s[(uint(floatBitsToUint(%s))>>2)+1u] = %s(%s).y;\n", dsts[0], srcs[0], conver… in translate_store()
2419 …snprintf(buf, 255, "%s[(uint(floatBitsToUint(%s))>>2)+2u] = %s(%s).z;\n", dsts[0], srcs[0], conver… in translate_store()
2423 …snprintf(buf, 255, "%s[(uint(floatBitsToUint(%s))>>2)+3u] = %s(%s).w;\n", dsts[0], srcs[0], conver… in translate_store()
2436 char dsts[3][255], in translate_load()
2463 …snprintf(buf, 512, "%s = %s(imageLoad(%s, %s(%s(%s))%s)%s);\n", dsts[0], get_string(dtypeprefix), … in translate_load()
2470 strcpy(mydst, dsts[0]); in translate_load()
2550 char srcs[4][255], char dsts[3][255]) in translate_resq()
2558 …snprintf(buf, 255, "%s = %s(imageSamples(%s));\n", dsts[0], get_string(INT_BITS_TO_FLOAT), srcs[0]… in translate_resq()
2563 … snprintf(buf, 255, "%s = %s(imageSize(%s));\n", dsts[0], get_string(INT_BITS_TO_FLOAT), srcs[0]); in translate_resq()
2567 …snprintf(buf, 255, "%s = %s(int(%s.length()) << 2);\n", dsts[0], get_string(INT_BITS_TO_FLOAT), sr… in translate_resq()
2579 char dsts[3][255]) in translate_atomic()
2631 snprintf(buf, 512, "%s = %s(imageAtomic%s(%s, %s(%s(%s))%s, %s(%s(%s))%s));\n", dsts[0], in translate_atomic()
2648 …"%s = %s(atomic%s(%s[int(floatBitsToInt(%s)) >> 2], %s(%s(%s).x)%s));\n", dsts[0], get_string(dtyp… in translate_atomic()
2658 char dsts[3][255], in get_destination_info()
2742 snprintf(dsts[i], 255, "clipv_tmp"); in get_destination_info()
2744 snprintf(dsts[i], 255, "clip_dist_temp[%d]", ctx->outputs[j].sid); in get_destination_info()
2758 snprintf(dsts[i], 255, "%s[%d]", ctx->outputs[j].glsl_name, idx); in get_destination_info()
2765 snprintf(dsts[i], 255, "gl_out[%s].%s%s", in get_destination_info()
2772 …snprintf(dsts[i], 255, "oblk[gl_InvocationID].%s%d[addr%d + %d]%s", get_stage_output_name_prefix(c… in get_destination_info()
2774 …snprintf(dsts[i], 255, "oblk[gl_InvocationID].%s%d[%d]%s", get_stage_output_name_prefix(ctx->prog_… in get_destination_info()
2777 …snprintf(dsts[i], 255, "%s[gl_InvocationID]%s", ctx->outputs[j].glsl_name, ctx->outputs[j].overrid… in get_destination_info()
2780 …snprintf(dsts[i], 255, "oblk.%s%d[addr%d + %d]%s", get_stage_output_name_prefix(ctx->prog_type), c… in get_destination_info()
2782 …snprintf(dsts[i], 255, "oblk.%s%d[%d]%s", get_stage_output_name_prefix(ctx->prog_type), ctx->gener… in get_destination_info()
2786 …snprintf(dsts[i], 255, "%sp%d[addr%d + %d]%s", get_stage_output_name_prefix(ctx->prog_type), ctx->… in get_destination_info()
2788 …snprintf(dsts[i], 255, "%sp%d[%d]%s", get_stage_output_name_prefix(ctx->prog_type), ctx->patch_out… in get_destination_info()
2791 …snprintf(dsts[i], 255, "%s%s", ctx->outputs[j].glsl_name, ctx->outputs[j].override_no_wm ? "" : wr… in get_destination_info()
2812 …snprintf(dsts[i], 255, "temp%d[addr0 + %d]%s", range->first, dst_reg->Register.Index - range->firs… in get_destination_info()
2814 …snprintf(dsts[i], 255, "temp%d[%d]%s", range->first, dst_reg->Register.Index - range->first, write… in get_destination_info()
2822 …snprintf(dsts[i], 255, "%simg%d[addr%d + %d]", cname, basearrayidx, dst_reg->Indirect.Index, dst_r… in get_destination_info()
2824 …snprintf(dsts[i], 255, "%simg%d[%d]", cname, basearrayidx, dst_reg->Register.Index - basearrayidx); in get_destination_info()
2826 snprintf(dsts[i], 255, "%simg%d", cname, dst_reg->Register.Index); in get_destination_info()
2834 …snprintf(dsts[i], 255, "%sssboarr%s[addr%d+%d].%sssbocontents%d", cname, atomic_str, dst_reg->Indi… in get_destination_info()
2836 …snprintf(dsts[i], 255, "%sssboarr%s[%d].%sssbocontents%d", cname, atomic_str, dst_reg->Register.In… in get_destination_info()
2838 snprintf(dsts[i], 255, "%sssbocontents%d", cname, dst_reg->Register.Index); in get_destination_info()
2840 snprintf(dsts[i], 255, "values"); in get_destination_info()
2842 snprintf(dsts[i], 255, "addr%d", dst_reg->Register.Index); in get_destination_info()
2846 strcpy(fp64_dsts[i], dsts[i]); in get_destination_info()
2847 snprintf(dsts[i], 255, "fp64_dst[%d]%s", i, fp64_writemask); in get_destination_info()
3293 char srcs[4][255], dsts[3][255], buf[512]; in iter_instruction() local
3319 ret = get_destination_info(ctx, inst, &dinfo, dsts, fp64_dsts, writemask); in iter_instruction()
3330 snprintf(buf, 255, "%s = sqrt(vec4(%s))%s;\n", dsts[0], srcs[0], writemask); in iter_instruction()
3334 …snprintf(buf, 255, "%s = mix(vec4(%s), vec4(%s), vec4(%s))%s;\n", dsts[0], srcs[2], srcs[1], srcs[… in iter_instruction()
3338 …snprintf(buf, 255, "%s = %s(dot(vec2(%s), vec2(%s)));\n", dsts[0], get_string(dinfo.dstconv), srcs… in iter_instruction()
3342 …snprintf(buf, 255, "%s = %s(dot(vec3(%s), vec3(%s)));\n", dsts[0], get_string(dinfo.dstconv), srcs… in iter_instruction()
3346 …snprintf(buf, 255, "%s = %s(dot(vec4(%s), vec4(%s)));\n", dsts[0], get_string(dinfo.dstconv), srcs… in iter_instruction()
3350 …snprintf(buf, 255, "%s = %s(dot(vec4(vec3(%s), 1.0), vec4(%s)));\n", dsts[0], get_string(dinfo.dst… in iter_instruction()
3357 …snprintf(buf, 255, "%s = %s(%s(max(%s, %s)));\n", dsts[0], get_string(dinfo.dstconv), get_string(d… in iter_instruction()
3364 …snprintf(buf, 255, "%s = %s(%s(min(%s, %s)));\n", dsts[0], get_string(dinfo.dstconv), get_string(d… in iter_instruction()
3399 snprintf(buf, 512, "%s = vec4(1.0, %s.y * %s.y, %s.z, %s.w);\n", dsts[0], in iter_instruction()
3404 ….0, %s.x) * pow(max(0.0, %s.y), clamp(%s.w, -128.0, 128.0)), 1.0)%s);\n", dsts[0], get_string(dinf… in iter_instruction()
3416 …(vec4(pow(2.0, floor(%s.x)), %s.x - floor(%s.x), exp2(%s.x), 1.0)%s);\n", dsts[0], get_string(dinf… in iter_instruction()
3420 …log2(%s.x)), %s.x / pow(2.0, floor(log2(%s.x))), log2(%s.x), 1.0)%s);\n", dsts[0], get_string(dinf… in iter_instruction()
3432 …snprintf(buf, 255, "%s = %s(vec4(cos(%s.x), sin(%s.x), 0, 1)%s);\n", dsts[0], get_string(dinfo.dst… in iter_instruction()
3455 snprintf(buf, 255, "%s = %s(1.0/(%s));\n", dsts[0], get_string(dinfo.dstconv), srcs[0]); in iter_instruction()
3459 snprintf(buf, 255, "%s = %s(1.0LF/(%s));\n", dsts[0], get_string(dinfo.dstconv), srcs[0]); in iter_instruction()
3493 … snprintf(buf, 255, "%s = %s(inversesqrt(%s.x));\n", dsts[0], get_string(dinfo.dstconv), srcs[0]); in iter_instruction()
3498 …snprintf(buf, 255, "%s = %s(%s(%s%s));\n", dsts[0], get_string(dinfo.dstconv), get_string(dinfo.dt… in iter_instruction()
3507 …snprintf(buf, 512, "%s = %s(%s(ivec4((uvec4(%s) + uvec4(%s))))%s);\n", dsts[0], get_string(dinfo.d… in iter_instruction()
3525 …snprintf(buf, 512, "%s = %s(%s((uvec4(%s) * uvec4(%s)))%s);\n", dsts[0], get_string(dinfo.dstconv)… in iter_instruction()
3529 …snprintf(buf, 255, "%s = %s(%s((uvec4(%s) %% uvec4(%s)))%s);\n", dsts[0], get_string(dinfo.dstconv… in iter_instruction()
3533 …snprintf(buf, 255, "%s = %s(%s((ivec4(%s) / ivec4(%s)))%s);\n", dsts[0], get_string(dinfo.dstconv)… in iter_instruction()
3537 …snprintf(buf, 255, "%s = %s(%s((uvec4(%s) / uvec4(%s)))%s);\n", dsts[0], get_string(dinfo.dstconv)… in iter_instruction()
3550 …snprintf(buf, 255, "%s = %s((%s * %s + %s)%s);\n", dsts[0], get_string(dinfo.dstconv), srcs[0], sr… in iter_instruction()
3555 …snprintf(buf, 512, "%s = %s(%s((%s * %s + %s)%s));\n", dsts[0], get_string(dinfo.dstconv), get_str… in iter_instruction()
3585 ret = translate_tex(ctx, inst, &sinfo, &dinfo, srcs, dsts, writemask); in iter_instruction()
3590 ret = emit_txq(ctx, inst, sinfo.sreg_index, srcs, dsts, writemask); in iter_instruction()
3595 ret = emit_txqs(ctx, inst, sinfo.sreg_index, srcs, dsts); in iter_instruction()
3600 …snprintf(buf, 255, "%s = %s(ivec4(%s)%s);\n", dsts[0], get_string(dinfo.dstconv), srcs[0], writema… in iter_instruction()
3604 snprintf(buf, 255, "%s = %s(ivec4(%s));\n", dsts[0], get_string(dinfo.dstconv), srcs[0]); in iter_instruction()
3608 snprintf(buf, 255, "%s = %s(%s);\n", dsts[0], get_string(dinfo.dstconv), srcs[0]); in iter_instruction()
3612 …snprintf(buf, 255, "%s = %s(uvec4(%s)%s);\n", dsts[0], get_string(dinfo.dstconv), srcs[0], writema… in iter_instruction()
3616 snprintf(buf, 255, "%s = %s(uvec4(%s));\n", dsts[0], get_string(dinfo.dstconv), srcs[0]); in iter_instruction()
3620 …snprintf(buf, 255, "%s = %s(%s(ivec4(%s))%s);\n", dsts[0], get_string(dinfo.dstconv), get_string(d… in iter_instruction()
3624 …snprintf(buf, 255, "%s = %s(%s(%s(%s)));\n", dsts[0], get_string(dinfo.dstconv), get_string(dinfo.… in iter_instruction()
3628 …snprintf(buf, 255, "%s = %s(%s(uvec4(%s))%s);\n", dsts[0], get_string(dinfo.dstconv), get_string(d… in iter_instruction()
3632 …snprintf(buf, 255, "%s = %s(%s(%s(%s)));\n", dsts[0], get_string(dinfo.dstconv), get_string(dinfo.… in iter_instruction()
3636 …snprintf(buf, 255, "%s = %s(%s(%s));\n", dsts[0], get_string(dinfo.dstconv), get_string(dinfo.dtyp… in iter_instruction()
3640 …snprintf(buf, 255, "%s = %s(uintBitsToFloat(~(uvec4(%s))));\n", dsts[0], get_string(dinfo.dstconv)… in iter_instruction()
3644 …snprintf(buf, 255, "%s = %s(intBitsToFloat(-(ivec4(%s))));\n", dsts[0], get_string(dinfo.dstconv),… in iter_instruction()
3648 snprintf(buf, 255, "%s = %s(-%s);\n", dsts[0], get_string(dinfo.dstconv), srcs[0]); in iter_instruction()
3702 …snprintf(buf, 255, "%s = %s(pow(%s, %s));\n", dsts[0], get_string(dinfo.dstconv), srcs[0], srcs[1]… in iter_instruction()
3706 …snprintf(buf, 255, "%s = mix(%s, %s, greaterThanEqual(%s, vec4(0.0)))%s;\n", dsts[0], srcs[1], src… in iter_instruction()
3710 …snprintf(buf, 512, "%s = mix(%s, %s, notEqual(floatBitsToUint(%s), uvec4(0.0)))%s;\n", dsts[0], sr… in iter_instruction()
3752 snprintf(buf, 255, "%s = int(floor(%s)%s);\n", dsts[0], srcs[0], writemask); in iter_instruction()
3756 snprintf(buf, 255, "%s = int(%s);\n", dsts[0], srcs[0]); in iter_instruction()
3760 …snprintf(buf, 255, "%s = %s(cross(vec3(%s), vec3(%s)));\n", dsts[0], get_string(dinfo.dstconv), sr… in iter_instruction()
3807 …snprintf(buf, 255, "%s = %s(%s(vec4(interpolateAtCentroid(%s))%s));\n", dsts[0], get_string(dinfo.… in iter_instruction()
3812 …snprintf(buf, 255, "%s = %s(%s(vec4(interpolateAtSample(%s, %s.x))%s));\n", dsts[0], get_string(di… in iter_instruction()
3817 …snprintf(buf, 255, "%s = %s(%s(vec4(interpolateAtOffset(%s, %s.xy))%s));\n", dsts[0], get_string(d… in iter_instruction()
3824 …snprintf(buf, 255, "%s = %s(%s(umul_temp));\n", dsts[0], get_string(dinfo.dstconv), get_string(din… in iter_instruction()
3832 …snprintf(buf, 255, "%s = %s(%s(imul_temp));\n", dsts[0], get_string(dinfo.dstconv), get_string(din… in iter_instruction()
3839 …snprintf(buf, 255, "%s = %s(%s(bitfieldExtract(%s, int(%s.x), int(%s.x))));\n", dsts[0], get_strin… in iter_instruction()
3844 …snprintf(buf, 255, "%s = %s(%s(bitfieldExtract(%s, int(%s.x), int(%s.x))));\n", dsts[0], get_strin… in iter_instruction()
3849 … "%s = %s(uintBitsToFloat(bitfieldInsert(%s, %s, int(%s), int(%s))));\n", dsts[0], get_string(dinf… in iter_instruction()
3854 …snprintf(buf, 255, "%s = %s(%s(bitfieldReverse(%s)));\n", dsts[0], get_string(dinfo.dstconv), get_… in iter_instruction()
3859 …snprintf(buf, 255, "%s = %s(%s(bitCount(%s)));\n", dsts[0], get_string(dinfo.dstconv), get_string(… in iter_instruction()
3864 …snprintf(buf, 255, "%s = %s(%s(findLSB(%s)));\n", dsts[0], get_string(dinfo.dstconv), get_string(d… in iter_instruction()
3870 …snprintf(buf, 255, "%s = %s(%s(findMSB(%s)));\n", dsts[0], get_string(dinfo.dstconv), get_string(d… in iter_instruction()
3915 ret = translate_store(ctx, inst, &sinfo, srcs, dsts); in iter_instruction()
3920 ret = translate_load(ctx, inst, &sinfo, &dinfo, srcs, dsts, writemask); in iter_instruction()
3934 ret = translate_atomic(ctx, inst, &sinfo, srcs, dsts); in iter_instruction()
3939 ret = translate_resq(ctx, inst, srcs, dsts); in iter_instruction()
3945 snprintf(buf, 255, "%s = uintBitsToFloat(clock2x32ARB());\n", dsts[0]); in iter_instruction()
3956 snprintf(buf, 255, "%s = uintBitsToFloat(unpackDouble2x32(%s));\n", fp64_dsts[0], dsts[0]); in iter_instruction()
3961 snprintf(buf, 255, "%s = clamp(%s, 0.0, 1.0);\n", dsts[0], dsts[0]); in iter_instruction()