Lines Matching defs:ins

478         struct wined3d_shader_instruction ins;
488 fe->shader_read_opcode(fe_data, &ptr, &ins, &param_size);
491 if (ins.handler_idx == WINED3DSIH_TABLE_SIZE)
499 if (ins.handler_idx == WINED3DSIH_DCL)
530 else if (ins.handler_idx == WINED3DSIH_DEF)
560 else if (ins.handler_idx == WINED3DSIH_DEFI)
577 else if (ins.handler_idx == WINED3DSIH_DEFB)
595 else if (ins.handler_idx == WINED3DSIH_LOOP
596 || ins.handler_idx == WINED3DSIH_REP)
603 if (ins.handler_idx == WINED3DSIH_REP)
616 else if (ins.handler_idx == WINED3DSIH_ENDLOOP
617 || ins.handler_idx == WINED3DSIH_ENDREP)
622 else if (ins.handler_idx == WINED3DSIH_LABEL)
641 if (ins.dst_count)
674 if (ins.handler_idx == WINED3DSIH_MOV)
691 && (ins.handler_idx == WINED3DSIH_TEX
692 || ins.handler_idx == WINED3DSIH_TEXBEM
693 || ins.handler_idx == WINED3DSIH_TEXBEML
694 || ins.handler_idx == WINED3DSIH_TEXDP3TEX
695 || ins.handler_idx == WINED3DSIH_TEXM3x2TEX
696 || ins.handler_idx == WINED3DSIH_TEXM3x3SPEC
697 || ins.handler_idx == WINED3DSIH_TEXM3x3TEX
698 || ins.handler_idx == WINED3DSIH_TEXM3x3VSPEC
699 || ins.handler_idx == WINED3DSIH_TEXREG2AR
700 || ins.handler_idx == WINED3DSIH_TEXREG2GB
701 || ins.handler_idx == WINED3DSIH_TEXREG2RGB))
710 if (ins.handler_idx == WINED3DSIH_TEXBEM
711 || ins.handler_idx == WINED3DSIH_TEXBEML)
714 if (ins.handler_idx == WINED3DSIH_TEXBEML)
720 else if (ins.handler_idx == WINED3DSIH_BEM)
726 if (ins.handler_idx == WINED3DSIH_NRM) reg_maps->usesnrm = 1;
727 else if (ins.handler_idx == WINED3DSIH_DSY) reg_maps->usesdsy = 1;
728 else if (ins.handler_idx == WINED3DSIH_DSX) reg_maps->usesdsx = 1;
729 else if (ins.handler_idx == WINED3DSIH_TEXLDD) reg_maps->usestexldd = 1;
730 else if (ins.handler_idx == WINED3DSIH_TEXLDL) reg_maps->usestexldl = 1;
731 else if (ins.handler_idx == WINED3DSIH_MOVA) reg_maps->usesmova = 1;
732 else if (ins.handler_idx == WINED3DSIH_IFC) reg_maps->usesifc = 1;
733 else if (ins.handler_idx == WINED3DSIH_CALL) reg_maps->usescall = 1;
735 limit = ins.src_count + (ins.predicate ? 1 : 0);
742 count = get_instr_extra_regcount(ins.handler_idx, i);
1107 struct wined3d_shader_instruction ins;
1119 ins.ctx = &ctx;
1120 ins.dst = &dst_param;
1121 ins.src = src_param;
1137 fe->shader_read_opcode(fe_data, &ptr, &ins, &param_size);
1140 if (ins.handler_idx == WINED3DSIH_TABLE_SIZE)
1148 if (ins.handler_idx == WINED3DSIH_DCL
1149 || ins.handler_idx == WINED3DSIH_NOP
1150 || ins.handler_idx == WINED3DSIH_DEF
1151 || ins.handler_idx == WINED3DSIH_DEFI
1152 || ins.handler_idx == WINED3DSIH_DEFB
1153 || ins.handler_idx == WINED3DSIH_PHASE)
1160 if (ins.dst_count) fe->shader_read_dst_param(fe_data, &ptr, &dst_param, &dst_rel_addr);
1163 if (ins.predicate)
1168 ins.predicate = *ptr++;
1172 for (i = 0; i < ins.src_count; ++i)
1178 device->shader_backend->shader_handle_instruction(&ins);
1241 struct wined3d_shader_instruction ins;
1274 fe->shader_read_opcode(fe_data, &ptr, &ins, &param_size);
1275 if (ins.handler_idx == WINED3DSIH_TABLE_SIZE)
1282 if (ins.handler_idx == WINED3DSIH_DCL)
1293 else if (ins.handler_idx == WINED3DSIH_DEF)
1307 else if (ins.handler_idx == WINED3DSIH_DEFI)
1321 else if (ins.handler_idx == WINED3DSIH_DEFB)
1337 if (ins.dst_count)
1344 if (ins.predicate)
1353 if (ins.coissue) TRACE("+");
1355 TRACE("%s", shader_opcode_names[ins.handler_idx]);
1357 if (ins.handler_idx == WINED3DSIH_IFC
1358 || ins.handler_idx == WINED3DSIH_BREAKC)
1360 switch (ins.flags)
1368 default: TRACE("_(%u)", ins.flags);
1371 else if (ins.handler_idx == WINED3DSIH_TEX
1373 && (ins.flags & WINED3DSI_TEXLD_PROJECT))
1379 if (ins.dst_count)
1387 for (i = ins.dst_count; i < (ins.dst_count + ins.src_count); ++i)
1416 static void shader_none_handle_instruction(const struct wined3d_shader_instruction *ins) {}