projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d7a98d
)
glsl: avoid hitting assert for arrays of arrays
author
Timothy Arceri
<t_arceri@yahoo.com.au>
Mon, 12 May 2014 10:25:26 +0000
(20:25 +1000)
committer
Timothy Arceri
<t_arceri@yahoo.com.au>
Thu, 15 Oct 2015 10:21:33 +0000
(21:21 +1100)
Also add TODO comment about adding proper support
Signed-off-by: Timothy Arceri <t_arceri@yahoo.com.au>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/glsl/ir_set_program_inouts.cpp
patch
|
blob
|
history
diff --git
a/src/glsl/ir_set_program_inouts.cpp
b/src/glsl/ir_set_program_inouts.cpp
index b7a0f6e95baf0da51f9fcd343e7208e00044f040..d7c29b00f8897db007f7d50a85ec7529a591bdc4 100644
(file)
--- a/
src/glsl/ir_set_program_inouts.cpp
+++ b/
src/glsl/ir_set_program_inouts.cpp
@@
-242,6
+242,12
@@
ir_set_program_inouts_visitor::try_mark_partial_variable(ir_variable *var,
type = type->fields.array;
}
+ /* TODO: implement proper arrays of arrays support
+ * for now let the caller mark whole variable as used.
+ */
+ if (type->is_array() && type->fields.array->is_array())
+ return false;
+
/* The code below only handles:
*
* - Indexing into matrices