mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader/hlsl: Introduce an hlsl_block_add_block() helper.
This commit is contained in:
committed by
Alexandre Julliard
parent
ceac81b816
commit
1da5a9a490
Notes:
Alexandre Julliard
2023-04-06 22:22:24 +02:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/138
@@ -1023,7 +1023,7 @@ struct hlsl_ir_store *hlsl_new_store_component(struct hlsl_ctx *ctx, struct hlsl
|
||||
vkd3d_free(store);
|
||||
return NULL;
|
||||
}
|
||||
list_move_tail(&block->instrs, &comp_path_block.instrs);
|
||||
hlsl_block_add_block(block, &comp_path_block);
|
||||
hlsl_src_from_node(&store->rhs, rhs);
|
||||
|
||||
if (type_is_single_reg(rhs->data_type))
|
||||
@@ -1215,7 +1215,7 @@ struct hlsl_ir_load *hlsl_new_load_component(struct hlsl_ctx *ctx, struct hlsl_b
|
||||
vkd3d_free(load);
|
||||
return NULL;
|
||||
}
|
||||
list_move_tail(&block->instrs, &comp_path_block.instrs);
|
||||
hlsl_block_add_block(block, &comp_path_block);
|
||||
|
||||
hlsl_block_add_instr(block, &load->node);
|
||||
|
||||
|
Reference in New Issue
Block a user