vkd3d-shader/hlsl: Pass an hlsl_block pointer to add_load_component().

This commit is contained in:
Zebediah Figura
2022-11-14 20:44:44 -06:00
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
3 changed files with 18 additions and 26 deletions

View File

@@ -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)))