draw/gs: make sure geometry shaders don't overflow
[mesa.git] / src / glsl / lower_variable_index_to_cond_assign.cpp
index 57771074a8c71b061f7e37b34d219323199b3f0e..040b0bf83576197bc65602655739672b96a2a6fa 100644 (file)
@@ -364,12 +364,16 @@ public:
         return this->lower_temps;
       case ir_var_uniform:
         return this->lower_uniforms;
-      case ir_var_in:
+      case ir_var_function_in:
       case ir_var_const_in:
-        return (var->location == -1) ? this->lower_temps : this->lower_inputs;
-      case ir_var_out:
-        return (var->location == -1) ? this->lower_temps : this->lower_outputs;
-      case ir_var_inout:
+         return this->lower_temps;
+      case ir_var_shader_in:
+         return this->lower_inputs;
+      case ir_var_function_out:
+         return this->lower_temps;
+      case ir_var_shader_out:
+         return this->lower_outputs;
+      case ir_var_function_inout:
         return this->lower_temps;
       }