summaryrefslogtreecommitdiffstats
path: root/src/glsl/ast_to_hir.cpp
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-01-14 11:36:17 -0800
committerJason Ekstrand <[email protected]>2016-01-14 11:36:27 -0800
commit45349acad01f4a27386f676e481c4eeddf64cdc0 (patch)
treedc4c933cd6a523c425f4a62f86dcdec82c53c8f0 /src/glsl/ast_to_hir.cpp
parentf46f4e488641437556188a3182ce4ddabd6f42d0 (diff)
parente94ef885bb71b46aba4517523ebb63c0d4b36c4b (diff)
Merge remote-tracking branch 'mesa-public/master' into vulkan
This fixes the bitfieldextract and bitfieldinsert CTS tests
Diffstat (limited to 'src/glsl/ast_to_hir.cpp')
-rw-r--r--src/glsl/ast_to_hir.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp
index b5e08c048c5..02e6e2d3d45 100644
--- a/src/glsl/ast_to_hir.cpp
+++ b/src/glsl/ast_to_hir.cpp
@@ -106,6 +106,15 @@ public:
return found;
}
+ virtual ir_visitor_status visit_enter(ir_expression *ir)
+ {
+ /* .length() doesn't actually read anything */
+ if (ir->operation == ir_unop_ssbo_unsized_array_length)
+ return visit_continue_with_parent;
+
+ return visit_continue;
+ }
+
private:
ir_variable *found;
};