mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-12-15 08:03:30 -08:00
vkd3d-shader/dxil: Take the record from the function emission state in sm6_parser_emit_call().
This commit is contained in:
committed by
Henri Verbeet
parent
c2ff59e80b
commit
f64432d4ec
Notes:
Henri Verbeet
2025-12-03 15:30:32 +01:00
Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1852
@@ -7135,10 +7135,11 @@ static void sm6_parser_decode_dx_op(struct sm6_parser *sm6, enum dx_intrinsic_op
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void sm6_parser_emit_call(struct sm6_parser *sm6, const struct dxil_record *record,
|
static void sm6_parser_emit_call(struct sm6_parser *sm6, struct function_emission_state *state)
|
||||||
struct function_emission_state *state, struct sm6_value *dst)
|
|
||||||
{
|
{
|
||||||
|
struct sm6_value *dst = sm6_parser_get_current_value(sm6);
|
||||||
const struct sm6_value *operands[DXIL_OP_MAX_OPERANDS];
|
const struct sm6_value *operands[DXIL_OP_MAX_OPERANDS];
|
||||||
|
const struct dxil_record *record = state->record;
|
||||||
const struct sm6_value *fn_value, *op_value;
|
const struct sm6_value *fn_value, *op_value;
|
||||||
unsigned int i = 1, j, operand_count;
|
unsigned int i = 1, j, operand_count;
|
||||||
const struct sm6_type *type = NULL;
|
const struct sm6_type *type = NULL;
|
||||||
@@ -8584,7 +8585,7 @@ static enum vkd3d_result sm6_parser_function_init(struct sm6_parser *sm6,
|
|||||||
is_terminator = true;
|
is_terminator = true;
|
||||||
break;
|
break;
|
||||||
case FUNC_CODE_INST_CALL:
|
case FUNC_CODE_INST_CALL:
|
||||||
sm6_parser_emit_call(sm6, record, &state, dst);
|
sm6_parser_emit_call(sm6, &state);
|
||||||
break;
|
break;
|
||||||
case FUNC_CODE_INST_CAST:
|
case FUNC_CODE_INST_CAST:
|
||||||
sm6_parser_emit_cast(sm6, record, ins, dst);
|
sm6_parser_emit_cast(sm6, record, ins, dst);
|
||||||
|
|||||||
Reference in New Issue
Block a user