Skip to content
Snippets Groups Projects

vkd3d-shader/hlsl: Write SM4 break instructions.

Merged Giovanni Mascellani requested to merge giomasce/vkd3d:amiata into master
2 unresolved threads

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
1861 1861 return names[type];
1862 1862 }
1863 1863
1864 const char *hlsl_jump_type_to_string(enum hlsl_ir_jump_type type)
1865 {
1866 static const char * const names[] =
1867 {
1868 "HLSL_IR_JUMP_BREAK",
1869 "HLSL_IR_JUMP_CONTINUE",
1870 "HLSL_IR_JUMP_DISCARD",
1871 "HLSL_IR_JUMP_RETURN",
1872 };
1873
1874 if (type >= ARRAY_SIZE(names))
1875 return "Unexpected jump type";
  • Elizabeth Figura
    Elizabeth Figura @zfigura started a thread on commit 9775bbcd
  • 2120 2120
    2121 static void write_sm4_jump(struct hlsl_ctx *ctx,
    2122 struct vkd3d_bytecode_buffer *buffer, const struct hlsl_ir_jump *jump)
    2123 {
    2124 struct sm4_instruction instr = {0};
    2125
    2126 switch (jump->type)
    2127 {
    2128 case HLSL_IR_JUMP_BREAK:
    2129 instr.opcode = VKD3D_SM4_OP_BREAK;
    2130 break;
    2131
    2132 default:
    2133 hlsl_fixme(ctx, &jump->node.loc, "Jump type %s.\n", hlsl_jump_type_to_string(jump->type));
    2134 return;
    2135 }
  • added 1 commit

    • c85f9e2d - vkd3d-shader/hlsl: Write SM4 break instructions.

    Compare with previous version

  • Thanks, I did both.

  • Elizabeth Figura approved this merge request

    approved this merge request

  • Henri Verbeet approved this merge request

    approved this merge request

  • added 4 commits

    Compare with previous version

  • Alexandre Julliard approved this merge request

    approved this merge request

  • Please register or sign in to reply
    Loading