Module: vkd3d Branch: master Commit: ae4341b565553fe35fa8e94fdf19176cbd576339 URL: https://gitlab.winehq.org/wine/vkd3d/-/commit/ae4341b565553fe35fa8e94fdf1917...
Author: Henri Verbeet hverbeet@codeweavers.com Date: Mon Nov 20 15:22:01 2023 +0100
vkd3d-shader/ir: Use location information from the instruction in vkd3d_shader_scan_instruction().
---
libs/vkd3d-shader/vkd3d_shader_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libs/vkd3d-shader/vkd3d_shader_main.c b/libs/vkd3d-shader/vkd3d_shader_main.c index 1517f970..770e385a 100644 --- a/libs/vkd3d-shader/vkd3d_shader_main.c +++ b/libs/vkd3d-shader/vkd3d_shader_main.c @@ -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; }