summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2011-01-26 21:15:52 -0700
committerBrian Paul <[email protected]>2011-01-26 21:15:52 -0700
commit7baa498ae46668aebf165b9f2b1ddf0f5fe87c07 (patch)
treede8eea22616ba8472765df6c33064955717ad2d9 /src
parent304b239869fe5cd57dc87e6fd95c4906d9653b97 (diff)
glsl: move ir_var_system_value code
Diffstat (limited to 'src')
-rw-r--r--src/mesa/program/ir_to_mesa.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mesa/program/ir_to_mesa.cpp b/src/mesa/program/ir_to_mesa.cpp
index 8d850a6407e..daedcadc9df 100644
--- a/src/mesa/program/ir_to_mesa.cpp
+++ b/src/mesa/program/ir_to_mesa.cpp
@@ -1487,7 +1487,6 @@ ir_to_mesa_visitor::visit(ir_dereference_variable *ir)
case ir_var_in:
case ir_var_out:
case ir_var_inout:
- case ir_var_system_value:
/* The linker assigns locations for varyings and attributes,
* including deprecated builtins (like gl_Color), user-assign
* generic attributes (glBindVertexLocation), and
@@ -1510,10 +1509,6 @@ ir_to_mesa_visitor::visit(ir_dereference_variable *ir)
var->type->gl_type,
var->location - VERT_ATTRIB_GENERIC0);
}
- } else if (var->mode == ir_var_system_value) {
- entry = new(mem_ctx) variable_storage(var,
- PROGRAM_SYSTEM_VALUE,
- var->location);
} else {
entry = new(mem_ctx) variable_storage(var,
PROGRAM_OUTPUT,
@@ -1521,6 +1516,11 @@ ir_to_mesa_visitor::visit(ir_dereference_variable *ir)
}
break;
+ case ir_var_system_value:
+ entry = new(mem_ctx) variable_storage(var,
+ PROGRAM_SYSTEM_VALUE,
+ var->location);
+ break;
case ir_var_auto:
case ir_var_temporary:
entry = new(mem_ctx) variable_storage(var, PROGRAM_TEMPORARY,