• Home
  • Raw
  • Download

Lines Matching refs:ureg

203    struct ureg_program *ureg;  member
423 struct ureg_program *ureg, in dcl_base_output() argument
450 struct ureg_program *ureg, in dcl_base_input() argument
460 struct ureg_dst temp = ureg_DECL_temporary(sx->ureg); in dcl_base_input()
462 ureg_MOV(ureg, in dcl_base_input()
466 ureg_MOV(ureg, ureg_writemask(temp, writemask), in dcl_base_input()
473 ureg_MOV(ureg, ureg_writemask(temp, writemask), in dcl_base_input()
488 struct ureg_program *ureg, in dcl_vs_input() argument
495 reg = ureg_DECL_vs_input(ureg, dst->base.index[0].imm); in dcl_vs_input()
497 dcl_base_input(sx, ureg, dst, reg, dst->base.index[0].imm, in dcl_vs_input()
503 struct ureg_program *ureg, in dcl_gs_input() argument
515 ureg_DECL_input(ureg, in dcl_gs_input()
519 dcl_base_input(sx, ureg, dst, reg, dst->base.index[1].imm, in dcl_gs_input()
526 sx->prim_id = ureg_DECL_system_value(ureg, TGSI_SEMANTIC_PRIMID, 0); in dcl_gs_input()
532 struct ureg_program *ureg, in dcl_sgv_input() argument
540 reg = ureg_DECL_system_value(ureg, translate_system_name(dcl_siv_name), 0); in dcl_sgv_input()
542 dcl_base_input(sx, ureg, dst, reg, dst->base.index[0].imm, in dcl_sgv_input()
548 struct ureg_program *ureg, in dcl_siv_input() argument
558 reg = ureg_DECL_input(ureg, in dcl_siv_input()
562 dcl_base_input(sx, ureg, dst, reg, dst->base.index[1].imm, in dcl_siv_input()
568 struct ureg_program *ureg, in dcl_ps_input() argument
576 reg = ureg_DECL_fs_input(ureg, in dcl_ps_input()
581 dcl_base_input(sx, ureg, dst, reg, dst->base.index[0].imm, in dcl_ps_input()
587 struct ureg_program *ureg, in dcl_ps_sgv_input() argument
596 ureg_property(ureg, in dcl_ps_sgv_input()
599 ureg_property(ureg, in dcl_ps_sgv_input()
604 reg = ureg_DECL_fs_input(ureg, in dcl_ps_sgv_input()
612 struct ureg_dst tmp = ureg_DECL_temporary(ureg); in dcl_ps_sgv_input()
616 ureg_CMP(ureg, tmp, reg, in dcl_ps_sgv_input()
617 ureg_imm1i(ureg, 0), ureg_imm1i(ureg, -1)); in dcl_ps_sgv_input()
622 dcl_base_input(sx, ureg, dst, reg, dst->base.index[0].imm, in dcl_ps_sgv_input()
628 struct ureg_program *ureg, in dcl_ps_siv_input() argument
636 reg = ureg_DECL_fs_input(ureg, in dcl_ps_siv_input()
644 struct ureg_dst tmp = ureg_DECL_temporary(ureg); in dcl_ps_siv_input()
646 ureg_MOV(ureg, tmp, reg); in dcl_ps_siv_input()
647 ureg_RCP(ureg, ureg_writemask(tmp, TGSI_WRITEMASK_W), in dcl_ps_siv_input()
652 dcl_base_input(sx, ureg, dst, reg, dst->base.index[0].imm, in dcl_ps_siv_input()
694 reg = ureg_src(ureg_DECL_temporary(sx->ureg)); in translate_relative_operand()
699 reg = ureg_src(ureg_DECL_temporary(sx->ureg)); in translate_relative_operand()
774 reg = ureg_DECL_temporary(sx->ureg); in translate_operand()
810 reg = ureg_src(ureg_DECL_temporary(sx->ureg)); in translate_indexable_temp()
949 reg = ureg_imm4f(sx->ureg, in translate_src_operand()
956 reg = ureg_imm4i(sx->ureg, in translate_src_operand()
963 reg = ureg_imm4u(sx->ureg, in translate_src_operand()
971 reg = ureg_src(ureg_DECL_temporary(sx->ureg)); in translate_src_operand()
1165 sample_ureg_emit(struct ureg_program *ureg, in sample_ureg_emit() argument
1183 offsetreg = ureg_imm3i(ureg, in sample_ureg_emit()
1194 ureg_tex_insn(ureg, in sample_ureg_emit()
1203 typedef void (*unary_ureg_func)(struct ureg_program *ureg, struct ureg_dst dst,
1206 expand_unary_to_scalarf(struct ureg_program *ureg, unary_ureg_func func, in expand_unary_to_scalarf() argument
1209 struct ureg_dst tmp = ureg_DECL_temporary(ureg); in expand_unary_to_scalarf()
1214 ureg_MOV(ureg, tmp, src); in expand_unary_to_scalarf()
1219 func(ureg, scalar_dst, in expand_unary_to_scalarf()
1224 func(ureg, scalar_dst, in expand_unary_to_scalarf()
1229 func(ureg, scalar_dst, in expand_unary_to_scalarf()
1234 func(ureg, scalar_dst, in expand_unary_to_scalarf()
1237 ureg_release_temporary(ureg, tmp); in expand_unary_to_scalarf()
1246 struct ureg_program *ureg = NULL; in Shader_tgsi_translate() local
1278 ureg = ureg_create(PIPE_SHADER_FRAGMENT); in Shader_tgsi_translate()
1281 ureg = ureg_create(PIPE_SHADER_VERTEX); in Shader_tgsi_translate()
1284 ureg = ureg_create(PIPE_SHADER_GEOMETRY); in Shader_tgsi_translate()
1288 assert(ureg); in Shader_tgsi_translate()
1289 sx.ureg = ureg; in Shader_tgsi_translate()
1299 expand_unary_to_scalarf(ureg, ureg_EX2, &sx, &opcode); in Shader_tgsi_translate()
1302 expand_unary_to_scalarf(ureg, ureg_SQRT, &sx, &opcode); in Shader_tgsi_translate()
1305 expand_unary_to_scalarf(ureg, ureg_RSQ, &sx, &opcode); in Shader_tgsi_translate()
1308 expand_unary_to_scalarf(ureg, ureg_LG2, &sx, &opcode); in Shader_tgsi_translate()
1312 ureg_IMUL_HI(ureg, in Shader_tgsi_translate()
1319 ureg_UMUL(ureg, in Shader_tgsi_translate()
1341 struct ureg_dst too_large = ureg_DECL_temporary(ureg); in Shader_tgsi_translate()
1342 struct ureg_dst tmp = ureg_DECL_temporary(ureg); in Shader_tgsi_translate()
1343 ureg_FSGE(ureg, too_large, in Shader_tgsi_translate()
1345 ureg_imm1f(ureg, 2147483648.0f)); in Shader_tgsi_translate()
1346 ureg_F2I(ureg, tmp, in Shader_tgsi_translate()
1348 ureg_UCMP(ureg, in Shader_tgsi_translate()
1351 ureg_imm1i(ureg, 0x7fffffff), in Shader_tgsi_translate()
1353 ureg_release_temporary(ureg, too_large); in Shader_tgsi_translate()
1354 ureg_release_temporary(ureg, tmp); in Shader_tgsi_translate()
1365 struct ureg_dst too_large = ureg_DECL_temporary(ureg); in Shader_tgsi_translate()
1366 struct ureg_dst tmp = ureg_DECL_temporary(ureg); in Shader_tgsi_translate()
1367 ureg_FSGE(ureg, too_large, in Shader_tgsi_translate()
1369 ureg_imm1f(ureg, 4294967296.0f)); in Shader_tgsi_translate()
1374 ureg_MAX(ureg, tmp, in Shader_tgsi_translate()
1375 ureg_imm1f(ureg, 0.0f), in Shader_tgsi_translate()
1377 ureg_F2U(ureg, tmp, in Shader_tgsi_translate()
1379 ureg_UCMP(ureg, in Shader_tgsi_translate()
1382 ureg_imm1u(ureg, 0xffffffff), in Shader_tgsi_translate()
1384 ureg_release_temporary(ureg, too_large); in Shader_tgsi_translate()
1385 ureg_release_temporary(ureg, tmp); in Shader_tgsi_translate()
1401 ureg_DECL_sampler(ureg, resource); in Shader_tgsi_translate()
1404 ureg_TXF(ureg, in Shader_tgsi_translate()
1415 sample_ureg_emit(ureg, TGSI_OPCODE_SAMPLE_I, 2, &opcode, in Shader_tgsi_translate()
1426 ureg_DECL_immediate_block_uint(ureg, in Shader_tgsi_translate()
1442 ureg_DECL_sampler(ureg, resource); in Shader_tgsi_translate()
1445 ureg_TXQ(ureg, in Shader_tgsi_translate()
1453 struct ureg_dst r0 = ureg_DECL_temporary(ureg); in Shader_tgsi_translate()
1464 ureg_SVIEWINFO(ureg, r0, in Shader_tgsi_translate()
1476 ureg_MOV(ureg, dstreg, tsrc); in Shader_tgsi_translate()
1480 ureg_I2F(ureg, dstreg, tsrc); in Shader_tgsi_translate()
1494 ureg_I2F(ureg, r0, ureg_src(r0)); in Shader_tgsi_translate()
1504 ureg_RCP(ureg, dstregmasked, ureg_scalar(tsrc, dst_swizzle)); in Shader_tgsi_translate()
1507 ureg_MOV(ureg, dstregmasked, ureg_scalar(tsrc, dst_swizzle)); in Shader_tgsi_translate()
1511 ureg_release_temporary(ureg, r0); in Shader_tgsi_translate()
1522 ureg_TEX(ureg, in Shader_tgsi_translate()
1535 sample_ureg_emit(ureg, TGSI_OPCODE_SAMPLE, 3, &opcode, in Shader_tgsi_translate()
1544 struct ureg_dst r0 = ureg_DECL_temporary(ureg); in Shader_tgsi_translate()
1559 ureg_MOV(ureg, in Shader_tgsi_translate()
1562 ureg_MOV(ureg, in Shader_tgsi_translate()
1569 ureg_TEX(ureg, in Shader_tgsi_translate()
1576 ureg_release_temporary(ureg, r0); in Shader_tgsi_translate()
1585 sample_ureg_emit(ureg, TGSI_OPCODE_SAMPLE_C, 4, &opcode, in Shader_tgsi_translate()
1594 struct ureg_dst r0 = ureg_DECL_temporary(ureg); in Shader_tgsi_translate()
1610 ureg_MOV(ureg, in Shader_tgsi_translate()
1613 ureg_MOV(ureg, in Shader_tgsi_translate()
1616 ureg_MOV(ureg, in Shader_tgsi_translate()
1618 ureg_imm1f(ureg, 0.0f)); in Shader_tgsi_translate()
1620 ureg_TXL(ureg, in Shader_tgsi_translate()
1627 ureg_release_temporary(ureg, r0); in Shader_tgsi_translate()
1636 sample_ureg_emit(ureg, TGSI_OPCODE_SAMPLE_C_LZ, 4, &opcode, in Shader_tgsi_translate()
1645 struct ureg_dst r0 = ureg_DECL_temporary(ureg); in Shader_tgsi_translate()
1652 ureg_MOV(ureg, in Shader_tgsi_translate()
1655 ureg_MOV(ureg, in Shader_tgsi_translate()
1659 ureg_TXL(ureg, in Shader_tgsi_translate()
1666 ureg_release_temporary(ureg, r0); in Shader_tgsi_translate()
1675 sample_ureg_emit(ureg, TGSI_OPCODE_SAMPLE_L, 4, &opcode, in Shader_tgsi_translate()
1687 ureg_TXD(ureg, in Shader_tgsi_translate()
1704 sample_ureg_emit(ureg, TGSI_OPCODE_SAMPLE_D, 5, &opcode, in Shader_tgsi_translate()
1713 struct ureg_dst r0 = ureg_DECL_temporary(ureg); in Shader_tgsi_translate()
1720 ureg_MOV(ureg, in Shader_tgsi_translate()
1723 ureg_MOV(ureg, in Shader_tgsi_translate()
1727 ureg_TXB(ureg, in Shader_tgsi_translate()
1734 ureg_release_temporary(ureg, r0); in Shader_tgsi_translate()
1743 sample_ureg_emit(ureg, TGSI_OPCODE_SAMPLE_B, 4, &opcode, in Shader_tgsi_translate()
1751 struct ureg_dst src0 = ureg_DECL_temporary(ureg); in Shader_tgsi_translate()
1752 ureg_MOV(ureg, src0, translate_src_operand(&sx, &opcode.src[0], OF_FLOAT)); in Shader_tgsi_translate()
1757 ureg_SIN(ureg, ureg_writemask(dst, TGSI_WRITEMASK_X), in Shader_tgsi_translate()
1759 ureg_SIN(ureg, ureg_writemask(dst, TGSI_WRITEMASK_Y), in Shader_tgsi_translate()
1761 ureg_SIN(ureg, ureg_writemask(dst, TGSI_WRITEMASK_Z), in Shader_tgsi_translate()
1763 ureg_SIN(ureg, ureg_writemask(dst, TGSI_WRITEMASK_W), in Shader_tgsi_translate()
1770 ureg_COS(ureg, ureg_writemask(dst, TGSI_WRITEMASK_X), in Shader_tgsi_translate()
1772 ureg_COS(ureg, ureg_writemask(dst, TGSI_WRITEMASK_Y), in Shader_tgsi_translate()
1774 ureg_COS(ureg, ureg_writemask(dst, TGSI_WRITEMASK_Z), in Shader_tgsi_translate()
1776 ureg_COS(ureg, ureg_writemask(dst, TGSI_WRITEMASK_W), in Shader_tgsi_translate()
1779 ureg_release_temporary(ureg, src0); in Shader_tgsi_translate()
1784 struct ureg_dst src0 = ureg_DECL_temporary(ureg); in Shader_tgsi_translate()
1785 struct ureg_dst src1 = ureg_DECL_temporary(ureg); in Shader_tgsi_translate()
1786 ureg_MOV(ureg, src0, translate_src_operand(&sx, &opcode.src[0], OF_UINT)); in Shader_tgsi_translate()
1787 ureg_MOV(ureg, src1, translate_src_operand(&sx, &opcode.src[1], OF_UINT)); in Shader_tgsi_translate()
1789 ureg_UDIV(ureg, in Shader_tgsi_translate()
1795 ureg_UMOD(ureg, in Shader_tgsi_translate()
1800 ureg_release_temporary(ureg, src0); in Shader_tgsi_translate()
1801 ureg_release_temporary(ureg, src1); in Shader_tgsi_translate()
1806 ureg_UMUL_HI(ureg, in Shader_tgsi_translate()
1813 ureg_UMUL(ureg, in Shader_tgsi_translate()
1833 ureg_DECL_sampler_view(ureg, res_index, target, in Shader_tgsi_translate()
1853 ureg_DECL_constant2D(ureg, in Shader_tgsi_translate()
1865 ureg_DECL_sampler(ureg, in Shader_tgsi_translate()
1874 ureg_property(sx.ureg, in Shader_tgsi_translate()
1880 ureg_property(sx.ureg, in Shader_tgsi_translate()
1886 ureg_property(sx.ureg, in Shader_tgsi_translate()
1904 ureg_property(sx.ureg, in Shader_tgsi_translate()
1911 ureg_property(sx.ureg, in Shader_tgsi_translate()
1918 ureg_property(sx.ureg, in Shader_tgsi_translate()
1925 ureg_property(sx.ureg, in Shader_tgsi_translate()
1932 ureg_property(sx.ureg, in Shader_tgsi_translate()
1945 ureg_property(sx.ureg, in Shader_tgsi_translate()
1952 dcl_vs_input(&sx, ureg, &opcode.dst[0]); in Shader_tgsi_translate()
1955 dcl_gs_input(&sx, ureg, &opcode.dst[0]); in Shader_tgsi_translate()
1961 dcl_sgv_input(&sx, ureg, &opcode.dst[0], opcode.dcl_siv_name); in Shader_tgsi_translate()
1966 dcl_siv_input(&sx, ureg, &opcode.dst[0], opcode.dcl_siv_name); in Shader_tgsi_translate()
1971 dcl_ps_input(&sx, ureg, &opcode.dst[0], in Shader_tgsi_translate()
1977 dcl_ps_sgv_input(&sx, ureg, &opcode.dst[0], in Shader_tgsi_translate()
1983 dcl_ps_siv_input(&sx, ureg, &opcode.dst[0], in Shader_tgsi_translate()
1995 …sx.output_depth = ureg_DECL_output_masked(ureg, TGSI_SEMANTIC_POSITION, 0, TGSI_WRITEMASK_Z, 0, 1); in Shader_tgsi_translate()
2002 dcl_base_output(&sx, ureg, in Shader_tgsi_translate()
2003 ureg_DECL_output(ureg, in Shader_tgsi_translate()
2013 unsigned nr_outputs = ureg_get_nr_outputs(ureg); in Shader_tgsi_translate()
2017 dcl_base_output(&sx, ureg, in Shader_tgsi_translate()
2018 ureg_DECL_output(ureg, in Shader_tgsi_translate()
2030 unsigned nr_outputs = ureg_get_nr_outputs(ureg); in Shader_tgsi_translate()
2051 ureg_property(ureg, TGSI_PROPERTY_NUM_CLIPDIST_ENABLED, in Shader_tgsi_translate()
2055 ureg_property(ureg, TGSI_PROPERTY_NUM_CULLDIST_ENABLED, in Shader_tgsi_translate()
2064 ureg_property(ureg, TGSI_PROPERTY_NUM_CULLDIST_ENABLED, in Shader_tgsi_translate()
2068 dcl_base_output(&sx, ureg, in Shader_tgsi_translate()
2070 ureg, in Shader_tgsi_translate()
2084 unsigned nr_outputs = ureg_get_nr_outputs(ureg); in Shader_tgsi_translate()
2088 dcl_base_output(&sx, ureg, in Shader_tgsi_translate()
2089 ureg_DECL_output(ureg, in Shader_tgsi_translate()
2105 sx.temps[sx.declared_temps + i] = ureg_DECL_temporary(ureg); in Shader_tgsi_translate()
2127 sx.temps[sx.declared_temps + i] = ureg_DECL_temporary(ureg); in Shader_tgsi_translate()
2137 struct ureg_dst src_nz = ureg_DECL_temporary(ureg); in Shader_tgsi_translate()
2138 ureg_USEQ(ureg, src_nz, src, ureg_imm1u(ureg, 0)); in Shader_tgsi_translate()
2139 ureg_UIF(ureg, ureg_src(src_nz), &label); in Shader_tgsi_translate()
2140 ureg_release_temporary(ureg, src_nz);; in Shader_tgsi_translate()
2142 ureg_UIF(ureg, translate_src_operand(&sx, &opcode.src[0], OF_INT), &label); in Shader_tgsi_translate()
2157 struct ureg_dst src_nz = ureg_DECL_temporary(ureg); in Shader_tgsi_translate()
2158 ureg_USEQ(ureg, src_nz, src, ureg_imm1u(ureg, 0)); in Shader_tgsi_translate()
2159 ureg_UIF(ureg, ureg_src(src_nz), &label); in Shader_tgsi_translate()
2160 ureg_release_temporary(ureg, src_nz); in Shader_tgsi_translate()
2163 ureg_UIF(ureg, translate_src_operand(&sx, &opcode.src[0], OF_INT), &label); in Shader_tgsi_translate()
2167 ureg_RET(ureg); in Shader_tgsi_translate()
2170 ureg_CONT(ureg); in Shader_tgsi_translate()
2175 ureg_CAL(ureg, &tgsi_token_label); in Shader_tgsi_translate()
2180 ureg_KILL(ureg); in Shader_tgsi_translate()
2183 ureg_BRK(ureg); in Shader_tgsi_translate()
2189 ureg_ENDIF(ureg); in Shader_tgsi_translate()
2196 ureg_ENDSUB(ureg); in Shader_tgsi_translate()
2198 tgsi_inst_no = ureg_get_instruction_number(ureg); in Shader_tgsi_translate()
2199 ureg_BGNSUB(ureg); in Shader_tgsi_translate()
2207 ureg_CAL(ureg, &tgsi_token_label); in Shader_tgsi_translate()
2212 ureg_EMIT(ureg, ureg_imm1u(ureg, 0)); in Shader_tgsi_translate()
2215 ureg_ENDPRIM(ureg, ureg_imm1u(ureg, 0)); in Shader_tgsi_translate()
2218 ureg_EMIT(ureg, ureg_imm1u(ureg, 0)); in Shader_tgsi_translate()
2219 ureg_ENDPRIM(ureg, ureg_imm1u(ureg, 0)); in Shader_tgsi_translate()
2261 ureg_insn(ureg, in Shader_tgsi_translate()
2274 ureg_ENDSUB(ureg); in Shader_tgsi_translate()
2277 ureg_END(ureg); in Shader_tgsi_translate()
2282 ureg_fixup_label(sx.ureg, in Shader_tgsi_translate()
2293 tokens = ureg_get_tokens(ureg, &nr_tokens); in Shader_tgsi_translate()
2295 ureg_destroy(ureg); in Shader_tgsi_translate()