[Mesa-dev] [PATCH 1/2] glsl: propagate used flag from interface var to new vars.

Dave Airlie airlied at gmail.com
Mon May 16 04:40:03 UTC 2016


From: Dave Airlie <airlied at redhat.com>

This just propogates the flags down, this is necessary so
gl_in[].gl_ClipDistance can be lowered correctly.

Signed-off-by: Dave Airlie <airlied at redhat.com>
---
 src/compiler/glsl/lower_named_interface_blocks.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/compiler/glsl/lower_named_interface_blocks.cpp b/src/compiler/glsl/lower_named_interface_blocks.cpp
index f780eca..d02103e 100644
--- a/src/compiler/glsl/lower_named_interface_blocks.cpp
+++ b/src/compiler/glsl/lower_named_interface_blocks.cpp
@@ -193,6 +193,7 @@ flatten_named_interface_blocks_declarations::run(exec_list *instructions)
             new_var->data.patch = iface_t->fields.structure[i].patch;
             new_var->data.stream = var->data.stream;
             new_var->data.how_declared = var->data.how_declared;
+            new_var->data.used = var->data.used;
             new_var->data.from_named_ifc_block = 1;
 
             new_var->init_interface_type(var->type);
-- 
2.5.5



More information about the mesa-dev mailing list