vkd3d-shader/ir: Remove an unnecessary typecast in shader_instruction_eliminate_phase_instance_id().

This commit is contained in:
Evan Tang 2024-10-04 10:37:26 -05:00 committed by Henri Verbeet
parent fbd8b1a8c4
commit b5ccc0e705
Notes: Henri Verbeet 2024-10-07 17:54:27 +02:00
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1151

View File

@ -763,7 +763,7 @@ static void shader_instruction_eliminate_phase_instance_id(struct vkd3d_shader_i
} }
for (i = 0; i < ins->dst_count; ++i) for (i = 0; i < ins->dst_count; ++i)
shader_register_eliminate_phase_addressing((struct vkd3d_shader_register *)&ins->dst[i].reg, instance_id); shader_register_eliminate_phase_addressing(&ins->dst[i].reg, instance_id);
} }
static const struct vkd3d_shader_varying_map *find_varying_map( static const struct vkd3d_shader_varying_map *find_varying_map(