summaryrefslogtreecommitdiffstats
path: root/src/mesa/program/ir_to_mesa.cpp
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2013-03-12 12:42:51 -0700
committerIan Romanick <[email protected]>2013-05-13 12:05:18 -0700
commitdafd6918f305274c8374bf9d427d90a3dabe13cb (patch)
treeffedaac8613427a35f801b23cc8865583655a130 /src/mesa/program/ir_to_mesa.cpp
parentf274a2ca8733059bdd4f1c456ed4f6df7d7ec008 (diff)
glsl: Add ir_triop_vector_insert
The new opcode is used to generate a new vector with a single field from the source vector replaced. This will eventually replace ir_dereference_array of vectors in the LHS of assignments. v2: Convert tabs to spaces. Suggested by Eric. v3: Add constant expression handling for ir_triop_vector_insert. This prevents the constant matrix inversion tests from regressing. Duh. Signed-off-by: Ian Romanick <[email protected]> Reviewed-by: Eric Anholt <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/program/ir_to_mesa.cpp')
-rw-r--r--src/mesa/program/ir_to_mesa.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/program/ir_to_mesa.cpp b/src/mesa/program/ir_to_mesa.cpp
index 98281140aae..e9c332d1543 100644
--- a/src/mesa/program/ir_to_mesa.cpp
+++ b/src/mesa/program/ir_to_mesa.cpp
@@ -1493,6 +1493,7 @@ ir_to_mesa_visitor::visit(ir_expression *ir)
case ir_binop_bfm:
case ir_triop_bfi:
case ir_triop_bitfield_extract:
+ case ir_triop_vector_insert:
case ir_quadop_bitfield_insert:
assert(!"not supported");
break;