mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader/hlsl: Pass an hlsl_block pointer to add_load_component().
This commit is contained in:
committed by
Alexandre Julliard
parent
f649db23a5
commit
372ddd1f29
Notes:
Alexandre Julliard
2023-08-08 21:47:28 +09: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/290
@@ -2738,7 +2738,7 @@ static bool lower_discard_neg(struct hlsl_ctx *ctx, struct hlsl_ir_node *instr,
|
||||
count = hlsl_type_component_count(cmp_type);
|
||||
for (i = 0; i < count; ++i)
|
||||
{
|
||||
if (!(load = hlsl_add_load_component(ctx, &block.instrs, cmp, i, &instr->loc)))
|
||||
if (!(load = hlsl_add_load_component(ctx, &block, cmp, i, &instr->loc)))
|
||||
return false;
|
||||
|
||||
if (!(or = hlsl_new_binary_expr(ctx, HLSL_OP2_LOGIC_OR, or, load)))
|
||||
|
Reference in New Issue
Block a user