Lines Matching refs:dinfo
2032 …trbufs, "%s = %s(%s((%s %s %s))%s);\n", dsts[0], get_string(dinfo.dstconv), get_string(dinfo.dtype…
2033 …sl_strbufs, "%s = %s(%s(%s(%s))%s);\n", dsts[0], get_string(dinfo.dstconv), get_string(dinfo.dtype…
2034 …s = %s(%s((%s(%s(%s), %s(%s))))%s);\n", dsts[0], get_string(dinfo.dstconv), get_string(dinfo.dtype…
2036 …ring(dinfo.dstconv), get_string(dinfo.udstconv), op, get_string(sinfo.svec4), srcs[0], get_string(…
2509 const struct dest_info *dinfo, in translate_tex() argument
2529 if (dinfo->dstconv != INT) in translate_tex()
2534 if (dinfo->dstconv != INT) in translate_tex()
2767 dst, get_string(dinfo->dstconv), get_string(dtypeprefix), in translate_tex()
2770 dinfo->dst_override_no_wm[0] ? "" : writemask); in translate_tex()
2774 dst, get_string(dinfo->dstconv), get_string(dtypeprefix), in translate_tex()
2777 dinfo->dst_override_no_wm[0] ? "" : writemask); in translate_tex()
2780 dst, get_string(dinfo->dstconv), get_string(dtypeprefix), in translate_tex()
2783 dinfo->dst_override_no_wm[0] ? "" : writemask); in translate_tex()
2787 dst, get_string(dinfo->dstconv), get_string(dtypeprefix), in translate_tex()
2790 dinfo->dst_override_no_wm[0] ? "" : writemask); in translate_tex()
2810 dst, get_string(dinfo->dstconv), in translate_tex()
2817 dst, get_string(dinfo->dstconv), in translate_tex()
2824 dst, get_string(dinfo->dstconv), get_string(dtypeprefix), in translate_tex()
2832 dst, get_string(dinfo->dstconv), get_string(dtypeprefix), in translate_tex()
2847 dst, get_string(dinfo->dstconv), in translate_tex()
2850 dinfo->dst_override_no_wm[0] ? "" : writemask); in translate_tex()
2853 dst, get_string(dinfo->dstconv), in translate_tex()
2856 dinfo->dst_override_no_wm[0] ? "" : writemask); in translate_tex()
2860 dst, get_string(dinfo->dstconv), in translate_tex()
2863 dinfo->dst_override_no_wm[0] ? "" : writemask); in translate_tex()
2866 dst, get_string(dinfo->dstconv), in translate_tex()
2869 dinfo->dst_override_no_wm[0] ? "" : writemask); in translate_tex()
2873 dst, get_string(dinfo->dstconv), get_string(dtypeprefix), in translate_tex()
2875 offbuf, bias, dinfo->dst_override_no_wm[0] ? "" : writemask); in translate_tex()
3145 struct dest_info *dinfo, in translate_load() argument
3159 const char *wm = dinfo->dst_override_no_wm[0] ? "" : writemask; in translate_load()
3513 struct dest_info *dinfo, in get_destination_info() argument
3530 dinfo->dtypeprefix = INT_BITS_TO_FLOAT; in get_destination_info()
3534 dinfo->dtypeprefix = UINT_BITS_TO_FLOAT; in get_destination_info()
3537 dinfo->dtypeprefix = INT_BITS_TO_FLOAT; in get_destination_info()
3547 dinfo->dst_override_no_wm[i] = false; in get_destination_info()
3571 dinfo->dstconv = DOUBLE; in get_destination_info()
3573 dinfo->dstconv = DVEC2; in get_destination_info()
3575 dinfo->dstconv = FLOAT + wm_idx - 2; in get_destination_info()
3576 dinfo->udstconv = UINT + wm_idx - 2; in get_destination_info()
3577 dinfo->idstconv = INT + wm_idx - 2; in get_destination_info()
3581 dinfo->dstconv = DVEC2; in get_destination_info()
3583 dinfo->dstconv = VEC4; in get_destination_info()
3584 dinfo->udstconv = UVEC4; in get_destination_info()
3585 dinfo->idstconv = IVEC4; in get_destination_info()
3627 dinfo->dtypeprefix = FLOAT_BITS_TO_INT; in get_destination_info()
3628 dinfo->dstconv = INT; in get_destination_info()
3639 dinfo->dst_override_no_wm[i] = ctx->outputs[j].override_no_wm; in get_destination_info()
3658 dinfo->dst_override_no_wm[i] = ctx->outputs[j].override_no_wm; in get_destination_info()
3665 dinfo->dst_override_no_wm[i] = ctx->outputs[j].override_no_wm; in get_destination_info()
3668 if (dinfo->dtypeprefix == TYPE_CONVERSION_NONE) in get_destination_info()
3669 dinfo->dtypeprefix = FLOAT_BITS_TO_INT; in get_destination_info()
3670 dinfo->dstconv = INT; in get_destination_info()
3673 if (dinfo->dtypeprefix == TYPE_CONVERSION_NONE) in get_destination_info()
3674 dinfo->dtypeprefix = FLOAT_BITS_TO_UINT; in get_destination_info()
3675 dinfo->dstconv = dinfo->udstconv; in get_destination_info()
3678 if (dinfo->dtypeprefix == TYPE_CONVERSION_NONE) in get_destination_info()
3679 dinfo->dtypeprefix = FLOAT_BITS_TO_INT; in get_destination_info()
3680 dinfo->dstconv = dinfo->idstconv; in get_destination_info()
3683 dinfo->dstconv = FLOAT; in get_destination_info()
4800 struct dest_info dinfo = { 0 }; in iter_instruction() local
4845 if (!get_destination_info(ctx, inst, &dinfo, dsts, fp64_dsts, writemask)) in iter_instruction()
4863 …>glsl_strbufs, "%s = %s(dot(vec2(%s), vec2(%s)));\n", dsts[0], get_string(dinfo.dstconv), srcs[0],… in iter_instruction()
4866 …>glsl_strbufs, "%s = %s(dot(vec3(%s), vec3(%s)));\n", dsts[0], get_string(dinfo.dstconv), srcs[0],… in iter_instruction()
4869 …>glsl_strbufs, "%s = %s(dot(vec4(%s), vec4(%s)));\n", dsts[0], get_string(dinfo.dstconv), srcs[0],… in iter_instruction()
4872 …fs, "%s = %s(dot(vec4(vec3(%s), 1.0), vec4(%s)));\n", dsts[0], get_string(dinfo.dstconv), srcs[0],… in iter_instruction()
4878 …rbufs, "%s = %s(%s(max(%s, %s))%s);\n", dsts[0], get_string(dinfo.dstconv), get_string(dinfo.dtype… in iter_instruction()
4884 …rbufs, "%s = %s(%s(min(%s, %s))%s);\n", dsts[0], get_string(dinfo.dstconv), get_string(dinfo.dtype… in iter_instruction()
4916 …0.0, %s.y), clamp(%s.w, -128.0, 128.0)), 1.0)%s);\n", dsts[0], get_string(dinfo.dstconv), srcs[0],… in iter_instruction()
4925 …(%s.x)), %s.x - floor(%s.x), exp2(%s.x), 1.0)%s);\n", dsts[0], get_string(dinfo.dstconv), srcs[0],… in iter_instruction()
4928 …pow(2.0, floor(log2(%s.x))), log2(%s.x), 1.0)%s);\n", dsts[0], get_string(dinfo.dstconv), srcs[0],… in iter_instruction()
4937 …glsl_strbufs, "%s = %s(vec4(cos(%s.x), sin(%s.x), 0, 1)%s);\n", dsts[0], get_string(dinfo.dstconv), in iter_instruction()
4955 …emit_buff(&ctx->glsl_strbufs, "%s = %s(1.0/(%s));\n", dsts[0], get_string(dinfo.dstconv), srcs[0]); in iter_instruction()
4958 …emit_buff(&ctx->glsl_strbufs, "%s = %s(1.0LF/(%s));\n", dsts[0], get_string(dinfo.dstconv), srcs[0… in iter_instruction()
4990 …emit_buff(&ctx->glsl_strbufs, "%s = %s(inversesqrt(%s.x));\n", dsts[0], get_string(dinfo.dstconv),… in iter_instruction()
4994 …->glsl_strbufs, "%s = %s(%s(%s%s));\n", dsts[0], get_string(dinfo.dstconv), get_string(dinfo.dtype… in iter_instruction()
5001 …ivec4((uvec4(%s) + uvec4(%s))))%s);\n", dsts[0], get_string(dinfo.dstconv), get_string(dinfo.dtype… in iter_instruction()
5015 … %s(%s((uvec4(%s) * uvec4(%s)))%s);\n", dsts[0], get_string(dinfo.dstconv), get_string(dinfo.dtype… in iter_instruction()
5018 …%s(%s((uvec4(%s) %% uvec4(%s)))%s);\n", dsts[0], get_string(dinfo.dstconv), get_string(dinfo.dtype… in iter_instruction()
5021 … %s(%s((ivec4(%s) / ivec4(%s)))%s);\n", dsts[0], get_string(dinfo.dstconv), get_string(dinfo.dtype… in iter_instruction()
5024 … %s(%s((uvec4(%s) / uvec4(%s)))%s);\n", dsts[0], get_string(dinfo.dstconv), get_string(dinfo.dtype… in iter_instruction()
5034 …emit_buff(&ctx->glsl_strbufs, "%s = %s((%s * %s + %s)%s);\n", dsts[0], get_string(dinfo.dstconv), … in iter_instruction()
5038 …fs, "%s = %s(%s((%s * %s + %s)%s));\n", dsts[0], get_string(dinfo.dstconv), get_string(dinfo.dtype… in iter_instruction()
5063 translate_tex(ctx, inst, &sinfo, &dinfo, srcs, dsts[0], writemask); in iter_instruction()
5072 …emit_buff(&ctx->glsl_strbufs, "%s = %s(ivec4(%s)%s);\n", dsts[0], get_string(dinfo.dstconv), srcs[… in iter_instruction()
5075 …emit_buff(&ctx->glsl_strbufs, "%s = %s(ivec4(%s));\n", dsts[0], get_string(dinfo.dstconv), srcs[0]… in iter_instruction()
5078 emit_buff(&ctx->glsl_strbufs, "%s = %s(%s);\n", dsts[0], get_string(dinfo.dstconv), srcs[0]); in iter_instruction()
5081 …emit_buff(&ctx->glsl_strbufs, "%s = %s(uvec4(%s)%s);\n", dsts[0], get_string(dinfo.dstconv), srcs[… in iter_instruction()
5084 …emit_buff(&ctx->glsl_strbufs, "%s = %s(uvec4(%s));\n", dsts[0], get_string(dinfo.dstconv), srcs[0]… in iter_instruction()
5087 …strbufs, "%s = %s(%s(ivec4(%s))%s);\n", dsts[0], get_string(dinfo.dstconv), get_string(dinfo.dtype… in iter_instruction()
5090 …%s = %s(%s(%s(%s)));\n", dsts[0], get_string(dinfo.dstconv), get_string(dinfo.dtypeprefix), get_st… in iter_instruction()
5093 …strbufs, "%s = %s(%s(uvec4(%s))%s);\n", dsts[0], get_string(dinfo.dstconv), get_string(dinfo.dtype… in iter_instruction()
5096 …%s = %s(%s(%s(%s)));\n", dsts[0], get_string(dinfo.dstconv), get_string(dinfo.dtypeprefix), get_st… in iter_instruction()
5099 …tx->glsl_strbufs, "%s = %s(%s(%s));\n", dsts[0], get_string(dinfo.dstconv), get_string(dinfo.dtype… in iter_instruction()
5102 …strbufs, "%s = %s(uintBitsToFloat(~(uvec4(%s))));\n", dsts[0], get_string(dinfo.dstconv), srcs[0]); in iter_instruction()
5105 …_strbufs, "%s = %s(intBitsToFloat(-(ivec4(%s))));\n", dsts[0], get_string(dinfo.dstconv), srcs[0]); in iter_instruction()
5108 emit_buff(&ctx->glsl_strbufs, "%s = %s(-%s);\n", dsts[0], get_string(dinfo.dstconv), srcs[0]); in iter_instruction()
5153 …emit_buff(&ctx->glsl_strbufs, "%s = %s(pow(%s, %s));\n", dsts[0], get_string(dinfo.dstconv), srcs[… in iter_instruction()
5193 …lsl_strbufs, "%s = %s(cross(vec3(%s), vec3(%s)));\n", dsts[0], get_string(dinfo.dstconv), srcs[0],… in iter_instruction()
5229 …ec4(interpolateAtCentroid(%s)%s)));\n", dsts[0], get_string(dinfo.dstconv), get_string(dinfo.dtype… in iter_instruction()
5233 …interpolateAtSample(%s, %s.x)%s)));\n", dsts[0], get_string(dinfo.dstconv), get_string(dinfo.dtype… in iter_instruction()
5237 …nterpolateAtOffset(%s, %s.xy)%s)));\n", dsts[0], get_string(dinfo.dstconv), get_string(dinfo.dtype… in iter_instruction()
5242 …strbufs, "%s = %s(%s(umul_temp%s));\n", dsts[0], get_string(dinfo.dstconv), get_string(dinfo.dtype… in iter_instruction()
5253 …strbufs, "%s = %s(%s(imul_temp%s));\n", dsts[0], get_string(dinfo.dstconv), get_string(dinfo.dtype… in iter_instruction()
5264 …xtract(%s, int(%s.x), int(%s.x))));\n", dsts[0], get_string(dinfo.dstconv), get_string(dinfo.dtype… in iter_instruction()
5268 …xtract(%s, int(%s.x), int(%s.x))));\n", dsts[0], get_string(dinfo.dstconv), get_string(dinfo.dtype… in iter_instruction()
5272 …Float(bitfieldInsert(%s, %s, int(%s), int(%s))));\n", dsts[0], get_string(dinfo.dstconv), srcs[0],… in iter_instruction()
5276 … "%s = %s(%s(bitfieldReverse(%s)));\n", dsts[0], get_string(dinfo.dstconv), get_string(dinfo.dtype… in iter_instruction()
5280 …trbufs, "%s = %s(%s(bitCount(%s)));\n", dsts[0], get_string(dinfo.dstconv), get_string(dinfo.dtype… in iter_instruction()
5284 …strbufs, "%s = %s(%s(findLSB(%s)));\n", dsts[0], get_string(dinfo.dstconv), get_string(dinfo.dtype… in iter_instruction()
5289 …strbufs, "%s = %s(%s(findMSB(%s)));\n", dsts[0], get_string(dinfo.dstconv), get_string(dinfo.dtype… in iter_instruction()
5342 inst, &sinfo, &dinfo, srcs, dsts[0], writemask); in iter_instruction()