vkd3d-shader/hlsl: Write SM4 break instructions.
2 unresolved threads
2 unresolved threads
Merge request reports
Activity
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"; changed this line in version 2 of the diff
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.
added 4 commits
-
c85f9e2d...99acf503 - 3 commits from branch
wine:master
- 7c3dadce - vkd3d-shader/hlsl: Write SM4 break instructions.
-
c85f9e2d...99acf503 - 3 commits from branch
Please register or sign in to reply