mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-04-13 05:43:18 -07:00
vkd3d-shader/ir: Use location information from the instruction in vkd3d_shader_scan_instruction().
This commit is contained in:
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
@ -1065,6 +1065,8 @@ static int vkd3d_shader_scan_instruction(struct vkd3d_shader_scan_context *conte
|
|||||||
struct vkd3d_shader_cf_info *cf_info;
|
struct vkd3d_shader_cf_info *cf_info;
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
|
|
||||||
|
context->location = instruction->location;
|
||||||
|
|
||||||
switch (instruction->handler_idx)
|
switch (instruction->handler_idx)
|
||||||
{
|
{
|
||||||
case VKD3DSIH_DCL_CONSTANT_BUFFER:
|
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;
|
return VKD3D_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user