Conor McCarthy : vkd3d-shader: Exclude descriptor arrays from push constant buffer searches.

Alexandre Julliard julliard at winehq.org
Wed Jul 28 15:35:08 CDT 2021


Module: vkd3d
Branch: master
Commit: e1b334aff8c1f1aa78f13701d24e98d5907455ca
URL:    https://source.winehq.org/git/vkd3d.git/?a=commit;h=e1b334aff8c1f1aa78f13701d24e98d5907455ca

Author: Conor McCarthy <cmccarthy at codeweavers.com>
Date:   Tue Jul 27 23:39:59 2021 +1000

vkd3d-shader: Exclude descriptor arrays from push constant buffer searches.

Signed-off-by: Conor McCarthy <cmccarthy at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 libs/vkd3d-shader/spirv.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libs/vkd3d-shader/spirv.c b/libs/vkd3d-shader/spirv.c
index 584f7c1..2ea7046 100644
--- a/libs/vkd3d-shader/spirv.c
+++ b/libs/vkd3d-shader/spirv.c
@@ -2433,6 +2433,9 @@ static struct vkd3d_push_constant_buffer_binding *vkd3d_dxbc_compiler_find_push_
     unsigned int reg_idx = cb->range.first;
     unsigned int i;
 
+    if (cb->range.first != cb->range.last)
+        return NULL;
+
     for (i = 0; i < compiler->shader_interface.push_constant_buffer_count; ++i)
     {
         struct vkd3d_push_constant_buffer_binding *current = &compiler->push_constants[i];




More information about the wine-cvs mailing list