vkd3d-shader/ir: Use location information from the instruction in vkd3d_shader_scan_instruction().

This commit is contained in:
Henri Verbeet 2023-11-20 15:22:01 +01:00 committed by Alexandre Julliard
parent 01dad41862
commit ae4341b565
Notes: Alexandre Julliard 2023-11-21 22:48:39 +01:00
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/485

View File

@ -1065,6 +1065,8 @@ static int vkd3d_shader_scan_instruction(struct vkd3d_shader_scan_context *conte
struct vkd3d_shader_cf_info *cf_info;
unsigned int i;
context->location = instruction->location;
switch (instruction->handler_idx)
{
case VKD3DSIH_DCL_CONSTANT_BUFFER:
@ -1292,7 +1294,6 @@ static int vkd3d_shader_scan_instruction(struct vkd3d_shader_scan_context *conte
}
}
++context->location.line;
return VKD3D_OK;
}