Zebediah Figura : vkd3d-shader: Do not scan DCL instructions which do not declare resources.
Module: vkd3d Branch: master Commit: 2bc40385d9b4a51a0d66462a6f708fbc888ecfa3 URL: https://gitlab.winehq.org/wine/vkd3d/-/commit/2bc40385d9b4a51a0d66462a6f708f... Author: Zebediah Figura <zfigura(a)codeweavers.com> Date: Wed Oct 25 13:58:13 2023 -0500 vkd3d-shader: Do not scan DCL instructions which do not declare resources. --- libs/vkd3d-shader/vkd3d_shader_main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/vkd3d-shader/vkd3d_shader_main.c b/libs/vkd3d-shader/vkd3d_shader_main.c index 0600e722..49ce886a 100644 --- a/libs/vkd3d-shader/vkd3d_shader_main.c +++ b/libs/vkd3d-shader/vkd3d_shader_main.c @@ -1073,6 +1073,9 @@ static int vkd3d_shader_scan_instruction(struct vkd3d_shader_scan_context *conte vkd3d_shader_scan_sampler_declaration(context, instruction); break; case VKD3DSIH_DCL: + if (instruction->declaration.semantic.resource_type == VKD3D_SHADER_RESOURCE_NONE) + break; + if (instruction->declaration.semantic.resource.reg.reg.type == VKD3DSPR_COMBINED_SAMPLER) { vkd3d_shader_scan_combined_sampler_declaration(context, &instruction->declaration.semantic);
participants (1)
-
Alexandre Julliard