glsl: Remove useless ir_shader enumeration value.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 20 Oct 2010 21:59:40 +0000 (14:59 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 20 Oct 2010 22:07:47 +0000 (15:07 -0700)
src/glsl/ast_to_hir.cpp
src/glsl/glsl_parser_extras.cpp
src/glsl/glsl_parser_extras.h
src/glsl/ir_variable.cpp

index af301e535ee22e2d467f0b2294f936f380f95540..15e1afc4dd271b5fb739afb9f1f9b8b6cf753f7c 100644 (file)
@@ -1785,11 +1785,7 @@ apply_type_qualifier_to_variable(const struct ast_type_qualifier *qual,
            string = "output";
         }
         break;
-
-      case ir_shader:
-        assert(!"Should not get here.");
-        break;
-      }
+      };
 
       if (fail) {
         _mesa_glsl_error(loc, state,
index 3b9877ec0e5e208e1a75d15c8fa54c10e5ec052c..b2c378dd8581054ab98f958b3073d923e3b130ad 100644 (file)
@@ -88,7 +88,6 @@ _mesa_glsl_shader_target_name(enum _mesa_glsl_parser_targets target)
    case vertex_shader:   return "vertex";
    case fragment_shader: return "fragment";
    case geometry_shader: return "geometry";
-   case ir_shader:       break;
    }
 
    assert(!"Should not get here.");
index 1f039e9f1b2cbca8ca169810be93868c72185e69..98c4e70173d74268ea8d95d3518ebdf5d4981cd8 100644 (file)
@@ -37,8 +37,7 @@
 enum _mesa_glsl_parser_targets {
    vertex_shader,
    geometry_shader,
-   fragment_shader,
-   ir_shader
+   fragment_shader
 };
 
 struct gl_context;
index f2c900f718fe1feb82552498769decec8bc0c8d3..6b9b29458d082044f837743d8c36b6570cb09374 100644 (file)
@@ -504,9 +504,5 @@ _mesa_glsl_initialize_variables(exec_list *instructions,
    case fragment_shader:
       initialize_fs_variables(instructions, state);
       break;
-   case ir_shader:
-      fprintf(stderr, "ir reader has no builtin variables");
-      exit(1);
-      break;
    }
 }